Click or drag to resize

DocumentSettingsAddSystemDocument Method (String, DocumentCategory, String, DocumentContextCallback)

Adds a system document with the specified category and context callback to the configuration.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.4
Syntax
public void AddSystemDocument(
	string identifier,
	DocumentCategory category,
	string contents,
	DocumentContextCallback contextCallback
)

Parameters

identifier
Type: SystemString
An identifier for the document.
category
Type: Microsoft.ClearScriptDocumentCategory
An optional category for the document.
contents
Type: SystemString
A string containing the document's contents.
contextCallback
Type: Microsoft.ClearScriptDocumentContextCallback
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