共用方式為


task::is_apartment_aware Method

Determines whether the task unwraps a Windows Runtime IAsyncInfo interface or is descended from such a task.

bool is_apartment_aware() const;

Return Value

true if the task unwraps an IAsyncInfo interface or is descended from such a task, false otherwise.

Requirements

Header: ppltasks.h

Namespace: concurrency

See Also

Reference

task Class (Concurrency Runtime)