ScriptEngineDisableTypeRestriction 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 public bool DisableTypeRestriction { get; set; }
Public Property DisableTypeRestriction As Boolean
Get
Set
public:
virtual property bool DisableTypeRestriction {
bool get () sealed;
void set (bool value) sealed;
}
abstract DisableTypeRestriction : bool with get, set
override DisableTypeRestriction : bool with get, set
Property Value
BooleanImplements
IScriptEngineDisableTypeRestrictionRemarks
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