Partager via


ModelingWindowPane.CommitPendingEditForCommand, méthode

Une fois implémenté dans une classe dérivée, spécifie si l'archivage en attente des modifications doit être validé avant qu'une commande soit exécutée.

Espace de noms :  Microsoft.VisualStudio.Modeling.Shell
Assembly :  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (dans Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntaxe

'Déclaration
Protected Overridable Function CommitPendingEditForCommand ( _
    command As CommandID _
) As Boolean
protected virtual bool CommitPendingEditForCommand(
    CommandID command
)

Paramètres

Valeur de retour

Type : System.Boolean
true s'il existe des modifications en attente, sinon false.

Notes

Par défaut, la valeur de retour est true.

Cette méthode vous permet pour spécifier qui modifie doit être validé avant d'exécuter une commande donnée.Étant donné que cette méthode est fréquemment appelée, utilisez cette méthode que pour traiter simple.Pour traiter complexe, utilisation CommitPendingEdit.

Sécurité .NET Framework

Voir aussi

Référence

ModelingWindowPane Classe

Microsoft.VisualStudio.Modeling.Shell, espace de noms