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.DiscardRedoItems

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

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

Parameters

action
The action to clear the redo 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