ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Properties
AccessContext Property
AllowReflection Property
ContinuationCallback Property
Current 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

# ScriptEngine Properties

The ScriptEngine type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| AccessContext | Allows script code to access non-host resources.
| AllowReflection | Controls whether script code is permitted to use reflection.
| ContinuationCallback | Gets or sets a callback that can be used to halt script execution.
| Current | Gets the script engine that is invoking a host member on the current thread.
| CustomAttributeLoader | Gets or sets the script engine's custom attribute loader.
| DefaultAccess | Gets or sets the default script access setting for all members of exposed objects.
| DisableDynamicBinding | Enables or disables dynamic method binding.
| DisableExtensionMethods | Enables or disables extension method support.
| DisableFloatNarrowing | Enables or disables floating point narrowing.
| DisableListIndexTypeRestriction | Enables or disables type restriction for array and list elements retrieved by index.
| DisableTypeRestriction | Enables or disables type restriction for field, property, and method return values.
| DocumentSettings | Gets or sets the script engine's document settings.
| EnableAutoHostVariables | Enables or disables automatic host variable tunneling for by-reference arguments to script functions and delegates.
| EnableNullResultWrapping | Enables or disables null wrapping for field, property, and method return values.
| EnforceAnonymousTypeAccess | Enables or disables access restrictions for anonymous types.
| ExposeHostObjectStaticMembers | Controls whether host objects provide access to the static members of their exposed types to script code.
| FileNameExtension | Gets the script engine's recommended file name extension for script files.
| FormatCode | Enables or disables script code formatting.
| Global | Allows the host to access script resources.
| HostData | Allows the host to attach arbitrary data to the script engine.
| Name | Gets the name associated with the script engine instance.
| NullExportValue | Gets or sets the script engine's null export value.
| NullImportValue | Gets or sets the script engine's null import value.
| Script | Allows the host to access script resources dynamically.
| UndefinedImportValue | Gets or sets the script engine's undefined import value.
| UseReflectionBindFallback | Enables or disables the use of reflection-based method binding as a fallback.
| VoidResultValue | Gets or sets the script engine's void result export value.

Top
See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft