UIThreadReentrancyScope::WaitOnTaskComplete Method (Task^, CancellationToken, Int32)

Visual Studio 2015
 

Microsoft internal use only. Wait for task completion. If this is called on the UI thread, it provides a reentrancy point for Thread helper.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static bool WaitOnTaskComplete(
	Task^ task,
	CancellationToken cancel,
	int ms
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task.

cancel
Type: System.Threading::CancellationToken

The cancelation token.

ms
Type: System::Int32

Return Value

Type: System::Boolean

True if the task is completed, otherwise false.

Return to top
Show: