Click or drag to resize

WindowsScriptEngineFlags Enumeration

Defines options for initializing a new Windows Script engine instance.

Namespace: Microsoft.ClearScript.Windows
Assembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.4.5
Syntax
[FlagsAttribute]
public enum WindowsScriptEngineFlags
Members
Member nameValueDescription
None0 Specifies that no options are selected.
EnableDebugging1 Specifies that script debugging features are to be enabled.
EnableJITDebugging2 Specifies that Just-In-Time script debugging is to be enabled. This option is ignored if EnableDebugging is not specified.
DisableSourceManagement4 Specifies that smart source document management is to be disabled. This option is ignored if EnableDebugging is not specified.
EnableStandardsMode8 Specifies that script language features that enhance standards compliance are to be enabled. This option only affects JScriptEngine.
MarshalNullAsDispatch16 Specifies that null is to be marshaled as a variant of type VT_DISPATCH. This option does not affect field, property, or method return values declared as Object, String, nullable Boolean, or nullable numeric types.
MarshalDecimalAsCurrency32 Specifies that Decimal values are to be marshaled as variants of type VT_CY.
MarshalArraysByValue64 Specifies that managed arrays that are passed or returned to script code are to be converted to script arrays and marshaled as variants of type VT_ARRAY. In VBScript these objects are the native array type. JScript code can use the VBArray object to access them.
DoNotEnableVTablePatching128 When EnableStandardsMode is specified, the ClearScript library uses virtual method table patching to support JScript-specific IDispatchEx extensions that otherwise interfere with some host object functionality. Virtual method table patching is a very low-level mechanism with global effect. This option specifies that virtual method table patching is not to be enabled on behalf of the current JScriptEngine instance.
MarshalDateTimeAsDate256 Specifies that DateTime values are to be marshaled as variants of type VT_DATE. In VBScript these objects are the native date-time type. JScript code can pass them to the Date constructor for property access.
See Also