[This is preliminary documentation and is subject to change.]
Raised before the list is cleared. Raised by Clear()()()() method.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public event DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler Clearing |
| Visual Basic |
|---|
Public Event Clearing As DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler |
| Visual C++ |
|---|
public: event DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler^ Clearing { void add (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler^ value); void remove (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler^ value); } |
| F# |
|---|
member Clearing : IEvent<DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ClearingEventHandler, EventArgs> |
| JScript |
|---|
|
Remarks
This event can be disabled (see AllowAddCancelableEventsHandlers. This means thatInvalidOperationException is thrown when adding handler and AllowAddCancelableEventsHandlers is False.
Removing Event is not raised when clearing list.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Adding handler when AllowAddCancelableEventsHandlers is false |