Version

Suspend Method

Suspends the recording of UndoUnit instances in the history.
Syntax
'Declaration
 
Public Sub Suspend() 
public void Suspend()
Remarks

The Suspend method is meant to be used to temporarily prevent recording of undo operations. This can be helpful when initializing objects/collections before they will be manipulated by the end user. The Resume method must be called to remove the suspension and must be called an equal number of times that the Suspend method is invoked.

While suspended, calls to AddChange(UndoUnit) will be ignored. Also any calls to Undo or Redo will result in an exception.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also