ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
IScriptEngine Interface
IScriptEngine Properties
AccessContext Property
AllowReflection Property
ContinuationCallback Property
CustomAttributeLoader Property
DefaultAccess Property
DisableDynamicBinding Property
DisableExtensionMethods Property
DisableFloatNarrowing Property
DisableListIndexTypeRestriction Property
DisableTypeRestriction Property
DocumentSettings Property
EnableAutoHostVariables Property
EnableNullResultWrapping Property
EnforceAnonymousTypeAccess Property
ExposeHostObjectStaticMembers Property
FileNameExtension Property
FormatCode Property
Global Property
HostData Property
Name Property
NullExportValue Property
NullImportValue Property
Script Property
UndefinedImportValue Property
UseReflectionBindFallback Property
VoidResultValue Property

# IScriptEngineAccessContext Property

Allows script code to access non-host resources.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    Type AccessContext { get; set; }

    Property AccessContext As Type
    	Get
    	Set

    property Type^ AccessContext {
    	Type^ get ();
    	void set (Type^ value);
    }

    abstract AccessContext : Type with get, set

#### Property Value

Type
Remarks
By setting this property to a type you declare that script code running in the current script engine is to be treated as if it were part of that type's implementation. Doing so does not expose any host resources to script code, but it affects which host resources are importable and which members of exposed resources are accessible.
See Also

#### Reference

IScriptEngine Interface
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft