Partager via


IOwnedCommand, interface

Une commande dont l'état est déterminé par un certain « propriétaire qui est ensuite chargé de déclencher l'événement de CanExecuteChanged de l'ICommand.

Espace de noms :  Microsoft.TeamFoundation.MVVM
Assembly :  Microsoft.TeamFoundation.Controls (dans Microsoft.TeamFoundation.Controls.dll)

Syntaxe

'Déclaration
Public Interface IOwnedCommand _
    Inherits ICommand
public interface IOwnedCommand : ICommand

Le type IOwnedCommand expose les membres suivants.

Méthodes

  Nom Description
Méthode publique CanExecute Définit la méthode qui détermine si la commande peut s'exécuter dans son état actuel. (Hérité de ICommand.)
Méthode publique Execute Définit la méthode à appeler lorsque la commande est appelée. (Hérité de ICommand.)
Méthode publique RaiseCanExecuteChanged

Début

Événements

  Nom Description
Événement public CanExecuteChanged Se produit lorsque des modifications influent sur l'exécution de la commande. (Hérité de ICommand.)

Début

Voir aussi

Référence

Microsoft.TeamFoundation.MVVM, espace de noms