[This is preliminary documentation and is subject to change.]
Raised before an item is added to the list. Raised by the Add(TKey, TValue) methods
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 Adding |
| Visual Basic |
|---|
Public Event Adding As DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler |
| Visual C++ |
|---|
public: event DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ Adding { void add (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ value); void remove (DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler^ value); } |
| F# |
|---|
member Adding : IEvent<DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>..::..ItemCancelEventHandler, EventArgs> |
| JScript |
|---|
|
Remarks
This event can be disabled (see AllowAddCancelableEventsHandlers. This means that InvalidOperationException is thrown when adding handler and AllowAddCancelableEventsHandlers is False.
Value of parameter e's Item can be changed if AddingReadOnly is False.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Adding handler when AllowAddCancelableEventsHandlers is false |