다음을 통해 공유


IVsTaskSchedulerService Interface

Creates and interacts with Asynchrous task blocks.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")> _
Public Interface IVsTaskSchedulerService
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")]
public interface IVsTaskSchedulerService
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"83CFBAAF-0DF9-403D-AE42-E738F0AC9735")]
public interface class IVsTaskSchedulerService
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("83CFBAAF-0DF9-403D-AE42-E738F0AC9735")>]
type IVsTaskSchedulerService =  interface end
public interface IVsTaskSchedulerService

The IVsTaskSchedulerService type exposes the following members.

Methods

  Name Description
Public method ContinueWhenAllCompleted Creates an asynchrous task that is run after all the provided tasks have either finished running or have been cancelled.
Public method ContinueWhenAllCompletedEx Creates a task (using the specified options) that is run after all the given tasks are completed.
Public method CreateTask Creates a task that is run on the given context.
Public method CreateTaskCompletionSource Creates a task completion source instance that can be used to start a task, or can cancel or append continuations.
Public method CreateTaskCompletionSourceEx Creates a task completion source instance with the specified options.
Public method CreateTaskEx Creates a task with the specified options that is run on the given context.

Top

Extension Methods

  Name Description
Public Extension Method ContinueWhenAllCompleted(VsTaskRunContext, array<IVsTask[], IVsTaskBody) Overloaded. Creates a Visual Studio task that's run after the provided tasks have either finished running or been cancelled. Overrides ContinueWhenAllCompleted. (Defined by VsTaskLibraryHelper.)
Public Extension Method ContinueWhenAllCompleted(VsTaskRunContext, array<IVsTask[], VsTaskContinuationOptions, IVsTaskBody, Object) Overloaded. Uses the specified options to create a task that's run after the given tasks are completed. Overrides ContinueWhenAllCompletedEx. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTask(VsTaskRunContext, IVsTaskBody) Overloaded. Creates a task that's run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTask(VsTaskRunContext, VsTaskCreationOptions, IVsTaskBody, Object) Overloaded. Creates a task with the specified options that is run on the given context. (Defined by VsTaskLibraryHelper.)
Public Extension Method CreateTaskCompletionSource Creates a task-completion source instance with the specified options. (Defined by VsTaskLibraryHelper.)
Public Extension Method InvokeAsync<T> Transforms a task parallel library (TPL) task from an asynchronous function into an IVsTask. (Defined by VsTaskLibraryHelper.)
Public Extension Method Yield Yields the current operation on the thread. The rest of the asynchronous method will be scheduled as a continuation. (Defined by VsTaskLibraryHelper.)

Top

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace