Compartir a través de


VsTaskLibraryHelper.CreateTaskCompletionSource Method

Definition

Override for IVsTaskSchedulerService.CreateTaskCompletionSourceEx to use proper enum types.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSource(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, System::Object ^ asyncState);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSource(Microsoft::VisualStudio::Shell::Interop::IVsTaskSchedulerService ^ service, Microsoft::VisualStudio::Shell::VsTaskCreationOptions options, Platform::Object ^ asyncState);
public static Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource CreateTaskCompletionSource (this Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService service, Microsoft.VisualStudio.Shell.VsTaskCreationOptions options, object asyncState);
static member CreateTaskCompletionSource : Microsoft.VisualStudio.Shell.Interop.IVsTaskSchedulerService * Microsoft.VisualStudio.Shell.VsTaskCreationOptions * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource
<Extension()>
Public Function CreateTaskCompletionSource (service As IVsTaskSchedulerService, options As VsTaskCreationOptions, asyncState As Object) As IVsTaskCompletionSource

Parameters

service
IVsTaskSchedulerService

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

options
VsTaskCreationOptions

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

asyncState
Object

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

Returns

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

Remarks

See comments for IVsTaskSchedulerService for method documentation.

Applies to