NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IUndoService.DiscardUndoItems

Clears actions from the undo stack before and including the specified action.

[Visual Basic]
Sub DiscardUndoItems( _
   ByVal action As IActionUnit _
)
[C#]
void DiscardUndoItems(
   IActionUnit action
);
[C++]
void DiscardUndoItems(
   IActionUnit* action
) = 0;
[JScript]
function DiscardUndoItems(
   action : IActionUnit
);

Parameters

action
The action to clear the undo stack down to and including. This action is also removed, and all items are removed if action is a null reference (in Visual Basic Nothing).

Remarks

If action is a null reference (Nothing) then all actions are removed. If action is not found in the stack, an ArgumentException is thrown.

See Also

IUndoService Interface | IUndoService Members | System.ComponentModel.Design Namespace