Compartir a través de


VsTaskLibraryHelper.Delay Method (IVsTaskSchedulerService, Double)

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

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

Syntax

'Declaration
Public Shared Function Delay ( _
    scheduler As IVsTaskSchedulerService, _
    delayMilliseconds As Double _
) As IVsTask
public static IVsTask Delay(
    IVsTaskSchedulerService scheduler,
    double delayMilliseconds
)
public:
static IVsTask^ Delay(
    IVsTaskSchedulerService^ scheduler, 
    double delayMilliseconds
)
static member Delay : 
        scheduler:IVsTaskSchedulerService * 
        delayMilliseconds:float -> IVsTask
public static function Delay(
    scheduler : IVsTaskSchedulerService, 
    delayMilliseconds : double
) : IVsTask

Parameters

  • delayMilliseconds
    Type: Double

    [in] The number of milliseconds to delay the subsequent task.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTask
The delaying task.

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

Delay Overload

Microsoft.VisualStudio.Shell Namespace