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
- parentUnit
Type : Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit
IOleParentUndoUnit à fermer.
- 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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.