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

Gets whether the current action can be added to the IUndoService implementation.

[Visual Basic]
Function CanAddAction( _
   ByVal action As IActionUnit _
) As Boolean
[C#]
bool CanAddAction(
   IActionUnit action
);
[C++]
bool CanAddAction(
   IActionUnit* action
) = 0;
[JScript]
function CanAddAction(
   action : IActionUnit
) : Boolean;

Parameters

action
The action that will be added.

Return Value

true if the action can be added; otherwise, false.

Remarks

If action requires a parent action or the service is currently not accepting new actions, it will return false.

See Also

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