ScriptEngineDisableListIndexTypeRestriction Property |
Enables or disables type restriction for array and list elements retrieved by index.
Namespace:
Microsoft.ClearScript
Assembly:
ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.5
Syntaxpublic bool DisableListIndexTypeRestriction { get; set; }
Public Property DisableListIndexTypeRestriction As Boolean
Get
Set
public:
property bool DisableListIndexTypeRestriction {
bool get ();
void set (bool value);
}
member DisableListIndexTypeRestriction : bool with get, set
Property Value
Type:
Boolean
Remarks
In ClearScript 5.4.4 and earlier, indexed array and list elements were exempt from type
restriction. ClearScript 5.4.5 introduced a breaking change to correct this, but you can
set this property to true to restore the exemption if you have older script code
that depends on it.
See Also