ScriptEngineAcceptEnumAsUnderlyingType Property |
Controls whether scripts can pass integral values to enumeration-typed host properties or parameters.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.1-preview
Syntaxpublic bool AcceptEnumAsUnderlyingType { get; set; }Public Property AcceptEnumAsUnderlyingType As Boolean
Get
Set
public:
virtual property bool AcceptEnumAsUnderlyingType {
bool get () sealed;
void set (bool value) sealed;
}abstract AcceptEnumAsUnderlyingType : bool with get, set
override AcceptEnumAsUnderlyingType : bool with get, set
Property Value
BooleanImplements
IScriptEngineAcceptEnumAsUnderlyingType
Remarks
When this property is set to
true, the script engine accepts integral values for
enumeration-typed host properties and parameters. Note that the default method binding
algorithm cannot support this property; it must be used in conjunction with
DisableDynamicBinding or
UseReflectionBindFallback. The
script engine makes no attempt to validate integral values passed from script code
against the defined members of the target enumeration type.
See Also