Metodo OleUndoEngine.UndoUnit.IOleParentUndoUnit.Close
Chiude unità specificata ripristina padre.
Spazio dei nomi: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Sintassi
'Dichiarazione
Private Function Close ( _
parentUnit As IOleParentUndoUnit, _
fCommit As Integer _
) As Integer Implements IOleParentUndoUnit.Close
int IOleParentUndoUnit.Close(
IOleParentUndoUnit parentUnit,
int fCommit
)
Parametri
- parentUnit
Tipo: Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit
IOleParentUndoUnit chiudere.
- fCommit
Tipo: System.Int32
true se l'unità viene tenuta nella raccolta, false se viene rimossa.
Valore restituito
Tipo: System.Int32
S_OK se l'unità padre di unità figlio aperte e correttamente sono stati chiusi.
S_FALSE se l'unità di annullamento padre non è un figlio aperto correttamente e sono stati chiusi.
E_INVALIDARG se parentUnit non corrisponde l'unità correntemente aperta ripristina padre.Non modificare uno stato interno a meno che l'unità padre sia bloccata.
Implementa
IOleParentUndoUnit.Close(IOleParentUndoUnit, Int32)
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.