Skip to content

JsCreateArray

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Creates a Javascript array object.

Syntax

STDAPI_(JsErrorCode)
    JsCreateArray(
    _In_ unsigned int length,
    _Out_ JsValueRef *result);

Parameters

  • length: The initial length of the array.
  • result: The new array object.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally