[This is preliminary documentation and is subject to change.]
Raises Clearing event
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
protected virtual void OnClearing( CancelMessageEventArgs e ) |
| Visual Basic |
|---|
Protected Overridable Sub OnClearing ( _ e As CancelMessageEventArgs _ ) |
| Visual C++ |
|---|
protected: virtual void OnClearing( CancelMessageEventArgs^ e ) |
| F# |
|---|
abstract OnClearing : e:CancelMessageEventArgs -> unit override OnClearing : e:CancelMessageEventArgs -> unit |
| JScript |
|---|
protected function OnClearing( e : CancelMessageEventArgs ) |
Parameters
- e
- Type: Tools.ComponentModelT..::..CancelMessageEventArgs
Event arguments
Remarks
Note for inheritors: Always call base class method OnClearing(CancelMessageEventArgs) in order the event to be raised
Exceptions
| Exception | Condition |
|---|---|
| System..::..OperationCanceledException | Operation is canceled in eventhandler and CancelError is true |
| System..::..Exception | Any Exception can be thrown by event handler of the Clearing event -or- Any exception may be thrown by OnClearing(ICollection) when AllowItemCancel is true |