DocumentSettingsAddSystemDocument(String, DocumentCategory, String, DocumentContextCallback) Method |
Adds a system document with the specified category and context callback to the configuration.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public void AddSystemDocument(
string identifier,
DocumentCategory category,
string contents,
DocumentContextCallback contextCallback
)
Public Sub AddSystemDocument (
identifier As String,
category As DocumentCategory,
contents As String,
contextCallback As DocumentContextCallback
)
public:
void AddSystemDocument(
String^ identifier,
DocumentCategory^ category,
String^ contents,
DocumentContextCallback^ contextCallback
)
member AddSystemDocument :
identifier : string *
category : DocumentCategory *
contents : string *
contextCallback : DocumentContextCallback -> unit
Parameters
- identifier String
- An identifier for the document.
- category DocumentCategory
- An optional category for the document.
- contents String
- A string containing the document's contents.
- contextCallback DocumentContextCallback
- An optional context callback for the document.
Remarks
System documents take precedence over loaded documents. Once this method is invoked,
document access using this configuration will always map the combination of
identifier and category to the specified
document, bypassing the configuration's document loader.
See Also