Compartir a través de


VsTaskLibraryHelper.Delay Method

Definition

Overloads

Delay(IVsTaskSchedulerService, Double)

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

Delay(IVsTaskSchedulerService, TimeSpan)

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

Delay(IVsTaskSchedulerService, Double)

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

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ Delay(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, double delayMilliseconds);
public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ Delay(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, double delayMilliseconds);
 static Microsoft::VisualStudio::Shell::Interop::IVsTask Delay(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService const & scheduler, double delayMilliseconds);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask Delay (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, double delayMilliseconds);
static member Delay : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * double -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function Delay (scheduler As IVsTaskSchedulerService, delayMilliseconds As Double) As IVsTask

Parameters

scheduler
IVsTaskSchedulerService

The task scheduler service.

delayMilliseconds
Double

The number of milliseconds to delay the subsequent task.

Returns

The delaying task.

Applies to

Delay(IVsTaskSchedulerService, TimeSpan)

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

public:
 static Microsoft::VisualStudio::Shell::Interop::IVsTask ^ Delay(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ scheduler, TimeSpan delay);
public static Microsoft.VisualStudio.Shell.Interop.IVsTask Delay (Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService scheduler, TimeSpan delay);
static member Delay : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * TimeSpan -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function Delay (scheduler As IVsTaskSchedulerService, delay As TimeSpan) As IVsTask

Parameters

scheduler
IVsTaskSchedulerService

The task scheduler service.

delay
TimeSpan

The amount of time to delay the subsequent task.

Returns

The delaying task.

Applies to