Condividi tramite


JsGetValueType Function

Gets the JavaScript type of a JsValueRef.

Syntax

STDAPI_(JsErrorCode) JsGetValueType(  
   _In_ JsValueRef value,  
   _Out_ JsValueType *type  
);  

Parameters

value
The value whose type is to be returned.

type
The type of the 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)