Partager via


OleUndoEngine.UndoUnit.IOleParentUndoUnit.Close, méthode

Ferme l'unité undo parente spécifiée.

Espace de noms :  Microsoft.VisualStudio.Shell.Design
Assembly :  Microsoft.VisualStudio.Shell.Design (dans Microsoft.VisualStudio.Shell.Design.dll)

Syntaxe

'Déclaration
Private Function Close ( _
    parentUnit As IOleParentUndoUnit, _
    fCommit As Integer _
) As Integer Implements IOleParentUndoUnit.Close
int IOleParentUndoUnit.Close(
    IOleParentUndoUnit parentUnit,
    int fCommit
)

Paramètres

  • fCommit
    Type : System.Int32
    true si l'unité est contenue dans la collection, false si elle est ignorée.

Valeur de retour

Type : System.Int32
S_OK si l'unité parente avait les unités enfantes ouvertes et elle ont été avec succès fermés.
S_FALSE si l'unité undo parente n'avait pas un enfant ouvert et elle ont été avec succès fermés.
E_INVALIDARG si parentUnit ne correspond à pas l'unité undo parente actuellement ouverte.Ne modifiez aucun état interne à moins que l'unité parente soit bloquée.

Implémentations

IOleParentUndoUnit.Close(IOleParentUndoUnit, Int32)

Sécurité .NET Framework

Voir aussi

Référence

OleUndoEngine.UndoUnit Classe

Microsoft.VisualStudio.Shell.Design, espace de noms