ScriptEngineMarshalEnumAsUnderlyingType Property |
Controls whether enumerations are converted to their underlying integral type when passed to script code.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.1-preview
Syntaxpublic bool MarshalEnumAsUnderlyingType { get; set; }Public Property MarshalEnumAsUnderlyingType As Boolean
Get
Set
public:
virtual property bool MarshalEnumAsUnderlyingType {
bool get () sealed;
void set (bool value) sealed;
}abstract MarshalEnumAsUnderlyingType : bool with get, set
override MarshalEnumAsUnderlyingType : bool with get, set
Property Value
BooleanImplements
IScriptEngineMarshalEnumAsUnderlyingType
Remarks
When this property is set to
true, the script engine converts enumerations to
their underlying types when passing them to script code. This conversion is lossy and
could break host method binding, property assignment, and other scenarios that rely on
enumeration type identity. It is recommended that you use this property in conjunction
with
AcceptEnumAsUnderlyingType.
See Also