Condividi tramite


JsGetPropertyNameFromId Function

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

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.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)