ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
DocumentSettings Class
DocumentSettings Constructor
DocumentSettings Properties
DocumentSettings Methods

# DocumentSettings Class

Represents a document access configuration.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScriptDocumentSettings
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public class DocumentSettings

    Public Class DocumentSettings

    public ref class DocumentSettings

    type DocumentSettings = class end

The DocumentSettings type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| DocumentSettings | Initializes a new DocumentSettings instance.

Top
Properties

| Name | Description
--- | --- | ---
| AccessFlags | Gets or sets document access options.
| AsyncLoadCallback | Gets or set an optional method to be called asynchronously when a document is loaded.
| ContextCallback | Gets or sets an optional document context callback.
| FileNameExtensions | Gets or sets a semicolon-delimited list of supported file name extensions.
| LoadCallback | Gets or set an optional method to be called when a document is loaded.
| Loader | Gets or sets a document loader.
| SearchPath | Gets or sets a semicolon-delimited list of directory URLs or paths to search for documents.

Top
Methods

| Name | Description
--- | --- | ---
| AddSystemDocument(String, Document) | Adds the specified document as a system document to the configuration.
| AddSystemDocument(String, String) | Adds a system document to the configuration.
| AddSystemDocument(String, DocumentCategory, String) | Adds a system document with the specified category to the configuration.
| AddSystemDocument(String, DocumentCategory, String, DocumentContextCallback) | Adds a system document with the specified category and context callback to the configuration.
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| ToString | Returns a string that represents the current object. (Inherited from Object)

Top
Remarks
This class can be extended to accommodate custom document loaders.
See Also

#### Reference

Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft