Share via


IVsTaskSchedulerService.CreateTaskCompletionSourceEx Method

Creates a task completion source instance with the specified options.

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

Syntax

'Declaration
Function CreateTaskCompletionSourceEx ( _
    options As UInteger, _
    AsyncState As Object _
) As IVsTaskCompletionSource
IVsTaskCompletionSource CreateTaskCompletionSourceEx(
    uint options,
    Object AsyncState
)
IVsTaskCompletionSource^ CreateTaskCompletionSourceEx(
    [InAttribute] unsigned int options, 
    [InAttribute] Object^ AsyncState
)
abstract CreateTaskCompletionSourceEx : 
        options:uint32 * 
        AsyncState:Object -> IVsTaskCompletionSource
function CreateTaskCompletionSourceEx(
    options : uint, 
    AsyncState : Object
) : IVsTaskCompletionSource

Parameters

  • options
    Type: System.UInt32

    [in] Task creation options for the task controlled by the completion source.

  • AsyncState
    Type: System.Object

    [in] Asynchronous state that will be stored by the task controlled by the completion source.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource
The task completion source instance.

.NET Framework Security

See Also

Reference

IVsTaskSchedulerService Interface

Microsoft.VisualStudio.Shell.Interop Namespace