OleUndoEngine.DiscardUndoUnit Method

This member overrides UndoEngine.DiscardUndoUnit(UndoEngine.UndoUnit), and more complete documentation might be available in that topic.

Closes this unit if it is a parent undo unit.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Protected Overrides Sub DiscardUndoUnit ( _
    unit As UndoEngine..::.UndoUnit _
)
'使用
Dim unit As UndoEngine..::.UndoUnit

Me.DiscardUndoUnit(unit)
protected override void DiscardUndoUnit(
    UndoEngine..::.UndoUnit unit
)
protected:
virtual void DiscardUndoUnit(
    UndoEngine..::.UndoUnit^ unit
) override
protected override function DiscardUndoUnit(
    unit : UndoEngine..::.UndoUnit
)

Parameters

Permissions

See Also

Concepts

Supplying Undo Support to Designers

Reference

OleUndoEngine Class

OleUndoEngine Members

Microsoft.VisualStudio.Shell.Design Namespace

UndoEngine.UndoUnit

OleUndoEngine

OnInterveningUnitBlockingLinkedUndo()

IVsLinkedUndoClient

OleUndoEngine

AddUndoUnit

CreateUndoUnit

Dispose