ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows
IHostWindow Interface
IWindowsScriptObject Interface
JScriptEngine Class
Nothing Class
VBScriptEngine Class
WindowsScriptEngine Class
WindowsScriptEngineFlags Enumeration

# 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.5.0
Syntax
C#
VB
C++
F#
Copy

    [FlagsAttribute]
    public enum WindowsScriptEngineFlags

    <FlagsAttribute>
    Public Enumeration WindowsScriptEngineFlags

    [FlagsAttribute]
    public enum class WindowsScriptEngineFlags

    [<FlagsAttribute>]
    type WindowsScriptEngineFlags

Members

Member name | Value | Description
--- | --- | ---
None | 0 | Specifies that no options are selected.
EnableDebugging | 1 | Specifies that script debugging features are to be enabled.
EnableJITDebugging | 2 | Specifies that Just-In-Time script debugging is to be enabled. This option is ignored if EnableDebugging is not specified.
DisableSourceManagement | 4 | Specifies that smart source document management is to be disabled. This option is ignored if EnableDebugging is not specified.
EnableStandardsMode | 8 | Specifies that script language features that enhance standards compliance are to be enabled. This option only affects JScriptEngine.
MarshalNullAsDispatch | 16 | 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.
MarshalDecimalAsCurrency | 32 | Specifies that Decimal values are to be marshaled as variants of type VT_CY.
MarshalArraysByValue | 64 | 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.
DoNotEnableVTablePatching | 128 | 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.
MarshalDateTimeAsDate | 256 | 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

#### Reference

Microsoft.ClearScript.Windows Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft