OleUndoEngine::UndoUnit::IOleParentUndoUnit::Close Method (IOleParentUndoUnit^, Int32)
Visual Studio 2015
Closes the specified parent undo unit.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
private: virtual int Close( IOleParentUndoUnit^ parentUnit, int fCommit ) sealed = IOleParentUndoUnit::Close
Parameters
- parentUnit
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleParentUndoUnit^
The IOleParentUndoUnit to close.
- fCommit
-
Type:
System::Int32
true if the unit should be kept in the collection, false if it should be discarded.
Return Value
Type: System::Int32S_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.
Show: