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