UndoManager.DiscardUndoStacks Method
Throws away undo/redo stacks. If the bool is true, then in addition to discarding the undostack the routine will mark the stack as clean.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
声明
Public Sub DiscardUndoStacks ( _
markAsClean As Boolean _
)
public void DiscardUndoStacks(
bool markAsClean
)
public:
void DiscardUndoStacks(
bool markAsClean
)
member DiscardUndoStacks :
markAsClean:bool -> unit
public function DiscardUndoStacks(
markAsClean : boolean
)
Parameters
- markAsClean
Type: System.Boolean
.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.