VsTaskLibraryHelper.CreateTaskCompletionSource(IVsTaskSchedulerService, VsTaskCreationOptions, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Remplacement de IVsTaskSchedulerService. CreateTaskCompletionSourceEx pour utiliser des types d’énumération appropriés.
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
Paramètres
- service
- IVsTaskSchedulerService
[in] Service du Planificateur de tâches à utiliser pour créer la source de saisie semi-automatique.
- options
- VsTaskCreationOptions
[in] Options de création de tâche pour la tâche contrôlée par la source de saisie semi-automatique.
- asyncState
- Object
dans État asynchrone qui sera stocké par la tâche contrôlée par la source de saisie semi-automatique.
Retours
Service du Planificateur de tâches qui crée la source d'achèvement de tâche.
Remarques
Pour plus d’informations sur la méthode, consultez les commentaires de IVsTaskSchedulerService.