ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
AsyncDocumentLoadCallback Delegate
ConcurrentPropertyBag Class
ContinuationCallback Delegate
CustomAttributeLoader Class
DefaultDocumentLoader Class
DefaultScriptUsageAttribute Class
Document Class
DocumentAccessFlags Enumeration
DocumentCategory Class
DocumentContextCallback Delegate
DocumentFlags Enumeration
DocumentInfo Structure
DocumentLoadCallback Delegate
DocumentLoader Class
DocumentSettings Class
DynamicHostObject Class
EventConnection Class
EventConnection<T> Class
EventSource Class
EventSource<T> Class
ExtendedHostFunctions Class
Extensions Class
HostFunctions Class
HostItemFlags Enumeration
HostSettings Class
HostTypeCollection Class
ImmutableValueAttribute Class
IPropertyBag Interface
IScriptableObject Interface
IScriptEngine Interface
IScriptEngineException Interface
IScriptObject Interface
NoDefaultScriptAccessAttribute Class
NoScriptAccessAttribute Class
PropertyBag Class
ScriptAccess Enumeration
ScriptEngine Class
ScriptEngineException Class
ScriptInterruptedException Class
ScriptMemberAttribute Class
ScriptMemberFlags Enumeration
ScriptObject Class
ScriptUsageAttribute Class
StringDocument Class
Undefined Class
ValueRef Class
ValueRef<T> Class
VoidResult Class

# Microsoft.ClearScript Namespace

The Microsoft.ClearScript namespace contains types that support all script engines.
Classes

| Class | Description
--- | --- | ---
| ConcurrentPropertyBag | Provides a thread-safe IPropertyBag implementation.
| CustomAttributeLoader | Represents a custom attribute loader.
| DefaultDocumentLoader | Provides a default DocumentLoader implementation.
| DefaultScriptUsageAttribute | Specifies defaults for how type members are to be exposed to script code.
| Document | Provides an abstract representation of a document.
| DocumentCategory | Represents a document category.
| DocumentLoader | Represents a document loader.
| DocumentSettings | Represents a document access configuration.
| DynamicHostObject | Extends DynamicObject for enhanced behavior and performance in a scripting environment.
| EventConnection | Provides the base implementation for a connection between a host event source and a script handler function.
| EventConnectionT | Represents a connection between a host event source and a script handler function.
| EventSource | Provides the base implementation for a host event source.
| EventSourceT | Represents a host event source.
| ExtendedHostFunctions | Provides optional script-callable utility functions. This extended version allows script code to import host types.
| Extensions | Defines extension methods for use with all script engines.
| HostFunctions | Provides optional script-callable utility functions.
| HostSettings | Defines properties that comprise ClearScript's global configuration.
| HostTypeCollection | Represents a scriptable collection of host types.
| ImmutableValueAttribute | Specifies that instances of the target struct are immutable.
| NoDefaultScriptAccessAttribute | Specifies that script code is to have no access to type members by default.
| NoScriptAccessAttribute | Specifies that script code is to have no access to the target type member.
| PropertyBag | Provides a default IPropertyBag implementation.
| ScriptEngine | Provides the base implementation for all script engines.
| ScriptEngineException | The exception that is thrown when an error occurs during script execution or script object access.
| ScriptInterruptedException | The exception that is thrown when script execution is interrupted by the host.
| ScriptMemberAttribute | Specifies how the target type member is to be exposed to script code. This extended version supports additional options.
| ScriptObject | Provides the base implementation for all script objects.
| ScriptUsageAttribute | Specifies how the target type member is to be exposed to script code.
| StringDocument | Provides an in-memory Document implementation for a text document.
| Undefined | Represents an undefined value.
| ValueRef | Provides a factory method for ValueRefT.
| ValueRefT | Holds a value on the heap.
| VoidResult | Represents the result of a host method that returns no value.

Structures

| Structure | Description
--- | --- | ---
| DocumentInfo | Contains meta-information for a document.

Interfaces

| Interface | Description
--- | --- | ---
| IPropertyBag | Represents a scriptable collection of named properties.
| IScriptableObject | Defines a method to be called when a host object is exposed to script code.
| IScriptEngine | Represents a script engine.
| IScriptEngineException | Defines common script engine exception properties.
| IScriptObject | Represents a script object.

Delegates

| Delegate | Description
--- | --- | ---
| AsyncDocumentLoadCallback | Represents a method to be called asynchronously when a document is loaded.
| ContinuationCallback | Represents a method that specifies to a script engine whether script execution should continue.
| DocumentContextCallback | Represents a method that retrieves context information for a document.
| DocumentLoadCallback | Represents a method to be called when a document is loaded.

Enumerations

| Enumeration | Description
--- | --- | ---
| DocumentAccessFlags | Defines document access options.
| DocumentFlags | Defines document attributes.
| HostItemFlags | Defines options for exposing host resources to script code.
| ScriptAccess | Defines script access settings for type members.
| ScriptMemberFlags | Defines options for exposing type members to script code.

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft