Condividi tramite


JsObjectToInspectable Function

Unwraps a JavaScript object to an IInspectable pointer.

Syntax

STDAPI_(JsErrorCode) JsObjectToInspectable(  
   _In_ JsValueRef value,  
   _Out_ IInspectable  **inspectable  
);  

Parameters

value
A JavaScript value that should be projected to IInspectable.

inspectable
An IInspectable value of the object.

Return Value

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

Remarks

Hosts are responsible for enforcing COM threading rules.

Requires an active script context.

This API is supported only in EdgeHTML mode.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)