Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Closes the specified parent undo unit.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Private Function Close ( _
parentUnit As IOleParentUndoUnit, _
fCommit As Integer _
) As Integer Implements IOleParentUndoUnit.Close
int IOleParentUndoUnit.Close(
IOleParentUndoUnit parentUnit,
int fCommit
)
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.Int32
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
IOleParentUndoUnit.Close(IOleParentUndoUnit, Int32)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.