Delen via


IVsTaskSchedulerService.CreateTaskCompletionSourceEx Method

Creates a task completion source instance with the specified options.

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
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: UInt32

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

  • AsyncState
    Type: 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