Share via


JsInspectableToObject Function

Creates a JavaScript value that is a projection of the passed in IInspectable pointer.

Syntax

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

Parameters

inspectable
A IInspectable to be projected.

value
A JavaScript value that is a projection of the IInspectable.

Return Value

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

Remarks

The projected value can be used by script to call a WinRT object. 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)