HostFunctionssetElement Method |
Namespace:
Microsoft.ClearScript
Assembly:
ClearScript.Core (in ClearScript.Core.dll) Version: 7.3.1
Syntaxpublic Object setElement(
IDynamicMetaObjectProvider target,
Object value,
params Object[] indices
)
Public Function setElement (
target As IDynamicMetaObjectProvider,
value As Object,
ParamArray indices As Object()
) As Object
public:
Object^ setElement(
IDynamicMetaObjectProvider^ target,
Object^ value,
... array<Object^>^ indices
)
member setElement :
target : IDynamicMetaObjectProvider *
value : Object *
indices : Object[] -> Object
Parameters
- target
- Type: System.DynamicIDynamicMetaObjectProvider
The dynamic host object that contains the element to set. - value
- Type: SystemObject
The new value of the element. - indices
- Type: SystemObject
One or more indices that identify the element to set.
Return Value
Type:
ObjectThe result of the operation, which is usually the value assigned to the specified element.
Remarks
This function is provided for script languages that do not support general indexing.
See Also