IScriptEngineDisableTypeRestriction Property |
Enables or disables type restriction for field, property, and method return values.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax bool DisableTypeRestriction { get; set; }
Property DisableTypeRestriction As Boolean
Get
Set
property bool DisableTypeRestriction {
bool get ();
void set (bool value);
}
abstract DisableTypeRestriction : bool with get, set
Property Value
BooleanRemarks
When this property is set to true, script code running in the current script
engine has access to the runtime types of all exposed host resources, which by default
are restricted to their declared types. The default behavior is a general requirement
for correct method binding, so setting this property to true is not recommended.
See Also