Sdílet prostřednictvím


JsSetProjectionEnqueueCallback Function

Sets the callback to be used in order to invoke a projection completion back to the callers required thread.

Syntax

STDAPI_(JsErrorCode) JsSetProjectionEnqueueCallback(  
   _In_ JsProjectionEnqueueCallback projectionEnqueueCallback,  
   _In_opt_ void *projectionEnqueueContext);  
  

Parameters

projectionEnqueueContext
The callback that will be invoked any time a projection completion occurs on a background thread.

callbackState
The application context provided to projectionEnqueueContext.

Return Value

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

Remarks

Requires an active script context.

The call should be coming from a different COM apartment or from a different thread in the same MTA.

This API is supported only in EdgeHTML mode.

Caution

PInvoke is not currently supported for this API.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)