Skip to content

JsCopyPropertyId

Xiaoyin Liu edited this page Aug 22, 2017 · 1 revision

Copies the name associated with the property ID into a buffer.

Syntax

CHAKRA_API
       JsCopyPropertyId(
        _In_ JsPropertyIdRef propertyId,
        _Out_ char* buffer,
        _In_ size_t bufferSize,
        _Out_ size_t* length);

Parameters

  • propertyId: The property ID to get the name of
  • buffer: The buffer holding the name associated with the property ID, encoded as utf8
  • bufferSize: Size of the buffer
  • length: Total number of characters written or to be written

Return Value

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

Remarks

This API is experimental and may have breaking change later.

Requires an active script context.

When size of the buffer is unknown, buffer argument can be nullptr. length argument will return the size needed.

Clone this wiki locally