Click or drag to resize

ScriptEngineDisableTypeRestriction Property

Enables or disables type restriction for field, property, and method return values.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public bool DisableTypeRestriction { get; set; }

Property Value

Boolean

Implements

IScriptEngineDisableTypeRestriction
Remarks
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