Compartir a través de


JsSetIndexedProperty Function

Set the value at the specified index of an object.

Syntax

STDAPI_(JsErrorCode) JsSetIndexedProperty(  
   _In_ JsValueRef object,  
   _In_ JsValueRef index,  
   _In_ JsValueRef value  
);  

Parameters

object
The object to operate on.

index
The index to set.

value
The value to set.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)