ScriptEngineDisableListIndexTypeRestriction Property |
Enables or disables type restriction for array and list elements retrieved by index.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public bool DisableListIndexTypeRestriction { get; set; }
Public Property DisableListIndexTypeRestriction As Boolean
Get
Set
public:
virtual property bool DisableListIndexTypeRestriction {
bool get () sealed;
void set (bool value) sealed;
}
abstract DisableListIndexTypeRestriction : bool with get, set
override DisableListIndexTypeRestriction : bool with get, set
Property Value
BooleanImplements
IScriptEngineDisableListIndexTypeRestrictionRemarks
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