[This is preliminary documentation and is subject to change.]
Raised before item is removed from the list. Raised by Remove(TKey) 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>)>)>..::..ItemCancelEventHandler Removing |
| Visual Basic |
|---|
Public Event Removing As DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler |
| Visual C++ |
|---|
public: event DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ Removing { void add (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ value); void remove (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ value); } |
| F# |
|---|
member Removing : IEvent<DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler, EventArgs> |
| JScript |
|---|
|
Remarks
This event can be disabled (see AllowAddCancelableEventsHandlers. This means thatInvalidOperationException is thrown when adding handler and AllowAddCancelableEventsHandlers is False.
Do not change content of list in handler! List is locked.
Removing event is not raised when list is being cleared.
Value of parameter e's Newkey cannot be changed.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Adding handler when AllowAddCancelableEventsHandlers is false |