Compartilhar via


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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
Public Shared Function Delay ( _
    scheduler As IVsTaskSchedulerService, _
    delay As TimeSpan _
) As IVsTask
public static IVsTask Delay(
    IVsTaskSchedulerService scheduler,
    TimeSpan delay
)

Parameters

  • 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.

.NET Framework Security

See Also

Reference

VsTaskLibraryHelper Class

Delay Overload

Microsoft.VisualStudio.Shell Namespace