task_continuation_context::use_arbitrary Method

Creates a task continuation context which allows the Runtime to choose the execution context for a continuation.

static task_continuation_context use_arbitrary();

A task continuation context that represents an arbitrary location.

When this continuation context is used the continuation will execute in a context the runtime chooses even if the antecedent task is apartment aware.

use_arbitrary can be used to turn off the default behavior for a continuation on an apartment aware task created in an STA.

This method is only available to Windows Store apps.

Header: ppltasks.h

Namespace: concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft