FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ClearScript/ClearScript/Windows/WindowsScriptEngineFlags.cs at master · RWooters/ClearScript · GitHub
RWooters
/
ClearScript
Public
forked from
ClearFoundry/ClearScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ClearScript
/
ClearScript
/
Windows
/
WindowsScriptEngineFlags.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
91 lines (79 loc) · 4.17 KB
Breadcrumbs
ClearScript
/
ClearScript
/
Windows
/
WindowsScriptEngineFlags.cs
Copy path
File metadata and controls
91 lines (79 loc) · 4.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using
System
;
namespace
Microsoft
.
ClearScript
.
Windows
{
/// <summary>
/// Defines options for initializing a new Windows Script engine instance.
/// </summary>
[
Flags
]
public
enum
WindowsScriptEngineFlags
{
/// <summary>
/// Specifies that no options are selected.
/// </summary>
None
=
0
,
/// <summary>
/// Specifies that script debugging features are to be enabled.
/// </summary>
EnableDebugging
=
0x00000001
,
/// <summary>
/// Specifies that Just-In-Time script debugging is to be enabled. This option is ignored
/// if <c><see cref="EnableDebugging"/></c> is not specified.
/// </summary>
EnableJITDebugging
=
0x00000002
,
/// <summary>
/// Specifies that smart source document management is to be disabled. This option is
/// ignored if <c><see cref="EnableDebugging"/></c> is not specified.
/// </summary>
DisableSourceManagement
=
0x00000004
,
/// <summary>
/// Specifies that script language features that enhance standards compliance are to be
/// enabled. This option only affects <c><see cref="Core.JScriptEngine"/></c>.
/// </summary>
EnableStandardsMode
=
0x00000008
,
/// <summary>
/// Specifies that <c>null</c> is to be marshaled as a variant of type <c>VT_DISPATCH</c>.
/// This option does not affect field, property, or method return values declared as
/// <c><see cref="object"/></c>, <c><see cref="string"/></c>, nullable <c><see cref="bool"/></c>, or nullable
/// numeric types.
/// </summary>
MarshalNullAsDispatch
=
0x00000010
,
/// <summary>
/// Specifies that <c><see cref="decimal"/></c> values are to be marshaled as variants of type
/// <c>VT_CY</c>.
/// </summary>
MarshalDecimalAsCurrency
=
0x00000020
,
/// <summary>
/// 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 <c>VT_ARRAY</c>. In
/// VBScript these objects are the native array type. JScript code can use the
/// <c><see href="https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/y39d47w8(v=vs.84)">VBArray</see></c>
/// object to access them.
/// </summary>
MarshalArraysByValue
=
0x00000040
,
/// <summary>
/// When <c><see cref="EnableStandardsMode"/></c> is specified, the ClearScript library uses
/// virtual method table patching to support JScript-specific
/// <c><see href="https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/sky96ah7(v=vs.94)">IDispatchEx</see></c>
/// 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
/// <c><see cref="Core.JScriptEngine"/></c> instance.
/// </summary>
DoNotEnableVTablePatching
=
0x00000080
,
/// <summary>
/// Specifies that <c><see cref="DateTime"/></c> values are to be marshaled as variants of type
/// <c>VT_DATE</c>. In VBScript these objects are the native date-time type. JScript code
/// can pass them to the
/// <c><see href="https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/dca21baa(v=vs.100)">Date</see></c>
/// constructor for property access.
/// </summary>
MarshalDateTimeAsDate
=
0x00000100
}
internal
static
class
WindowsScriptEngineFlagsHelpers
{
public
static
bool
HasAllFlags
(
this
WindowsScriptEngineFlags
value
,
WindowsScriptEngineFlags
flags
)
=>
(
value
&
flags
)
==
flags
;
public
static
bool
HasAnyFlag
(
this
WindowsScriptEngineFlags
value
,
WindowsScriptEngineFlags
flags
)
=>
(
value
&
flags
)
!=
0
;
}
}
Back
|
FazBrowse Home
|
New Git URL