VsTaskLibraryHelper::CreateTaskCompletionSource Method (IVsTaskSchedulerService^, VsTaskCreationOptions, Object^)

 

Creates a task-completion source instance with the specified options.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
[ExtensionAttribute]
static IVsTaskCompletionSource^ CreateTaskCompletionSource(
	IVsTaskSchedulerService^ service,
	VsTaskCreationOptions options,
	Object^ asyncState
)

Parameters

service
Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskSchedulerService^

[in] The task scheduler service to use to create the completion source.

options
Type: Microsoft.VisualStudio.Shell::VsTaskCreationOptions

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

asyncState
Type: System::Object^

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

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsTaskCompletionSource^

The task scheduler service that is creating the task completion source.

Return to top
Show: