DesignerTransaction::OnCancel Method ()

 

Raises the Cancel event.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

protected:
virtual void OnCancel() abstract

When a designer transaction is canceled, the transaction processing mechanism attempts to roll back the changes that have been made so far in the transaction. Whether this succeeds is dependent upon such factors as the type of each operation, whether other operations interfered with any of the involved code's state, and whether a sequence of expected operations failed to complete.

Notes to Inheritors:

When implemented in a derived class, this method cancels a transaction.

NamedPermissionSet

for full access to system resources. Demand value: InheritanceDemand. Associated state:

.NET Framework
Available since 1.1
Return to top
Show: