Compartilhar via


OleUndoEngine.UndoUnit.IOleParentUndoUnit.Close Method

Definition

Closes the specified parent undo unit.

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit.Close(Microsoft::VisualStudio::OLE::Interop::IOleParentUndoUnit ^ parentUnit, int fCommit) = Microsoft::VisualStudio::OLE::Interop::IOleParentUndoUnit::Close;
 virtual int Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit.Close(Microsoft::VisualStudio::OLE::Interop::IOleParentUndoUnit ^ parentUnit, int fCommit) = Microsoft::VisualStudio::OLE::Interop::IOleParentUndoUnit::Close;
int Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit.Close(Microsoft::VisualStudio::OLE::Interop::IOleParentUndoUnit const & parentUnit, int fCommit);
int IOleParentUndoUnit.Close (Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit parentUnit, int fCommit);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit.Close : Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit * int -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit.Close : Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit * int -> int
Function Close (parentUnit As IOleParentUndoUnit, fCommit As Integer) As Integer Implements IOleParentUndoUnit.Close

Parameters

parentUnit
IOleParentUndoUnit

The IOleParentUndoUnit to close.

fCommit
Int32

true if the unit should be kept in the collection, false if it should be discarded.

Returns

S_OK if the parent unit had open child units and it was successfully closed. S_FALSE if the parent undo unit did not have an open child and it was successfully closed. E_INVALIDARG if parentUnit does not match the currently open parent undo unit. Do not change any internal state unless the parent unit is blocked.

Implements

Applies to