JoinableTaskContext::IsWithinJoinableTask Property
Visual Studio 2015
Determines whether the caller is currently running in the context of a joinable task.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Property Value
Type: System::Booleantrue if the caller is currently running in the context of a joinable task, otherwise false.
Use of this property is generally discouraged, because any operation that becomes a no-op when no ambient JoinableTask is present is very cheap. For clients that have complex algorithms that are relevant only if an ambient joinable task is present, this property may serve to skip that for performance reasons.
Show: