VsTaskLibraryHelper::Delay Method (IVsTaskSchedulerService^, TimeSpan)

 

Returns a task that delays execution of the subsequent task by a given period of time.

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

public:
static IVsTask^ Delay(
	IVsTaskSchedulerService^ scheduler,
	TimeSpan delay
)

Parameters

scheduler
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^

[in] The task scheduler service.

delay
Type: System::TimeSpan

[in] The amount of time to delay the subsequent task.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsTask^

The delaying task.

Return to top
Show: