IVsTaskItem.put_Priority(VSTASKPRIORITY) Méthode

Définition

Définit le niveau de priorité d'un élément de tâche.

public:
 int put_Priority(Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY tpPriority);
public:
 int put_Priority(Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY tpPriority);
int put_Priority(Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY tpPriority);
public int put_Priority (Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY tpPriority);
abstract member put_Priority : Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY -> int
Public Function put_Priority (tpPriority As VSTASKPRIORITY) As Integer

Paramètres

tpPriority
VSTASKPRIORITY

[in] Niveau de priorité (élevé, normal ou faible) de la tâche. Pour obtenir la liste des valeurs, consultez VSTASKPRIORITY.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de vsshell. idl :

HRESULT IVsTaskItem::put_Priority(  
   [in] VSTASKPRIORITY tpPriority  
);  

Implémentez cette méthode uniquement si vous souhaitez que le niveau de priorité soit modifiable par l’utilisateur.

S’applique à