IVsTaskSchedulerService.CreateTask(UInt32, IVsTaskBody) 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.
Crée une tâche qui est exécutée sur le contexte donné.
public:
Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(System::UInt32 context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
public:
Microsoft::VisualStudio::Shell::Interop::IVsTask ^ CreateTask(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody ^ pTaskBody);
Microsoft::VisualStudio::Shell::Interop::IVsTask CreateTask(unsigned int context, Microsoft::VisualStudio::Shell::Interop::IVsTaskBody const & pTaskBody);
public Microsoft.VisualStudio.Shell.Interop.IVsTask CreateTask (uint context, Microsoft.VisualStudio.Shell.Interop.IVsTaskBody pTaskBody);
abstract member CreateTask : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsTaskBody -> Microsoft.VisualStudio.Shell.Interop.IVsTask
Public Function CreateTask (context As UInteger, pTaskBody As IVsTaskBody) As IVsTask
Paramètres
- context
- UInt32
[in] Où exécuter cette tâche. Les valeurs proviennent de __VSTASKRUNCONTEXT .
- pTaskBody
- IVsTaskBody
[in] Action à exécuter.
Retours
La tâche doit être exécutée.