ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
DocumentSettings Class
DocumentSettings Methods
AddSystemDocument Method
AddSystemDocument(String, Document) Method
AddSystemDocument(String, String) Method
AddSystemDocument(String, DocumentCategory, String) Method
AddSystemDocument(String, DocumentCategory, String, DocumentContextCallback) Method

# DocumentSettingsAddSystemDocument(String, Document) Method

Adds the specified document as a system document to the configuration.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void AddSystemDocument(
    	string identifier,
    	Document document
    )

    Public Sub AddSystemDocument (
    	identifier As String,
    	document As Document
    )

    public:
    void AddSystemDocument(
    	String^ identifier,
    	Document^ document
    )

    member AddSystemDocument :
            identifier : string *
            document : Document -> unit

#### Parameters

identifier String
  An identifier for the document.
document Document
  The document to be added as a system 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 the specified document's category to the specified document, bypassing the configuration's document loader.
See Also

#### Reference

DocumentSettings Class
AddSystemDocument Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft