Skip to content

JsGetPropertyNameFromId

Xiaoyin Liu edited this page Aug 22, 2017 · 3 revisions

Gets the name associated with the property ID.

Syntax

STDAPI_(JsErrorCode)
    JsGetPropertyNameFromId(
    _In_ JsPropertyIdRef propertyId,
    _Outptr_result_z_ const wchar_t **name);

Parameters

  • propertyId: The property ID to get the name of.
  • name: The name associated with the property ID.

Return Value

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

Remarks

This API is Windows-only (see JsCopyPropertyId for cross-platform equivalent). Requires an active script context. The returned buffer is valid as long as the runtime is alive and cannot be used once the runtime has been disposed.

Clone this wiki locally