[This is preliminary documentation and is subject to change.]
Raises Adding event
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
protected virtual void OnAdding( ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs e ) |
| Visual Basic |
|---|
Protected Overridable Sub OnAdding ( _ e As ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs _ ) |
| Visual C++ |
|---|
protected: virtual void OnAdding( ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs^ e ) |
| F# |
|---|
abstract OnAdding : e:ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs -> unit override OnAdding : e:ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs -> unit |
| JScript |
|---|
protected function OnAdding( e : ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs ) |
Parameters
Remarks
Note for inheritors: Always call base class method OnAdding(ListWithEvents<(Of <<'(T>)>>)..::..CancelableItemIndexEventArgs) 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 Adding event -or- Any Exception can be thrown by OnAdding(ICollection, Nullable<(Of <<'(Int32>)>>), Boolean) when AllowItemCancel is true |
See Also
Version History
1.5.2
- Added support for ICollectionCancelItem