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.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function Delay ( _
scheduler As IVsTaskSchedulerService, _
delay As TimeSpan _
) As IVsTask
public static IVsTask Delay(
IVsTaskSchedulerService scheduler,
TimeSpan delay
)
public:
static IVsTask^ Delay(
IVsTaskSchedulerService^ scheduler,
TimeSpan delay
)
static member Delay :
scheduler:IVsTaskSchedulerService *
delay:TimeSpan -> IVsTask
public static function Delay(
scheduler : IVsTaskSchedulerService,
delay : TimeSpan
) : IVsTask
Parameters
scheduler
Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService[in] The task scheduler service.
delay
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.