Share via


JsGetIndexedProperty Function

Retrieve the value at the specified index of an object.

Syntax

STDAPI_(JsErrorCode) JsGetIndexedProperty(  
   _In_ JsValueRef object,  
   _In_ JsValueRef index,  
   _Out_ JsValueRef *result  
);  

Parameters

object
The object to operate on.

index
The index to retrieve.

result
The retrieved value.

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)