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