Condividi tramite


JsSetExternalData Function

Sets the external data on an external object.

Syntax

STDAPI_(JsErrorCode) JsSetExternalData(  
   _In_ JsValueRef object,  
   _In_opt_ void *externalData  
);  

Parameters

object
The external object.

externalData
The external data stored in the object. Can be null if no external data is stored in the object.

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)