Udostępnij za pośrednictwem


VsTaskLibraryHelper.Wait Method

Definition

Overloads

Wait(IVsTask, Int32)

Override for IvsTask.WaitEx with default options.

Wait(IVsTask, Int32, VsTaskWaitOptions)

Override for IvsTask.WaitEx to use proper enum types.

Wait(IVsTask, Int32)

Override for IvsTask.WaitEx with default options.

public:
[System::Runtime::CompilerServices::Extension]
 static bool Wait(Microsoft::VisualStudio::Shell::Interop::IVsTask ^ task, int millisecondsTimeout);
public:
[System::Runtime::CompilerServices::Extension]
 static bool Wait(Microsoft::VisualStudio::Shell::Interop::IVsTask ^ task, int millisecondsTimeout);
public static bool Wait (this Microsoft.VisualStudio.Shell.Interop.IVsTask task, int millisecondsTimeout);
static member Wait : Microsoft.VisualStudio.Shell.Interop.IVsTask * int -> bool
<Extension()>
Public Function Wait (task As IVsTask, millisecondsTimeout As Integer) As Boolean

Parameters

task
IVsTask

The task that is to wait to complete.

millisecondsTimeout
Int32

The timeout (in milliseconds) or INFINITE.

Returns

The time to wait.

Remarks

See comments for IVsTask for method documentation.

Applies to

Wait(IVsTask, Int32, VsTaskWaitOptions)

Override for IvsTask.WaitEx to use proper enum types.

public:
[System::Runtime::CompilerServices::Extension]
 static bool Wait(Microsoft::VisualStudio::Shell::Interop::IVsTask ^ task, int millisecondsTimeout, Microsoft::VisualStudio::Shell::VsTaskWaitOptions options);
public:
[System::Runtime::CompilerServices::Extension]
 static bool Wait(Microsoft::VisualStudio::Shell::Interop::IVsTask ^ task, int millisecondsTimeout, Microsoft::VisualStudio::Shell::VsTaskWaitOptions options);
public static bool Wait (this Microsoft.VisualStudio.Shell.Interop.IVsTask task, int millisecondsTimeout, Microsoft.VisualStudio.Shell.VsTaskWaitOptions options);
static member Wait : Microsoft.VisualStudio.Shell.Interop.IVsTask * int * Microsoft.VisualStudio.Shell.VsTaskWaitOptions -> bool
<Extension()>
Public Function Wait (task As IVsTask, millisecondsTimeout As Integer, options As VsTaskWaitOptions) As Boolean

Parameters

task
IVsTask

The task that is to wait to complete.

millisecondsTimeout
Int32

The timeout (in milliseconds) or INFINITE.

options
VsTaskWaitOptions

The options for the wait operation, as specified in VsTaskWaitOptions.

Returns

The time to wait.

Remarks

See comments for IVsTask for method documentation.

Applies to