[This is preliminary documentation and is subject to change.]
Removes the ListWithEvents<(Of <(<'T>)>)> item at the specified index.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public override void RemoveAt( int index ) |
| Visual Basic |
|---|
Public Overrides Sub RemoveAt ( _ index As Integer _ ) |
| Visual C++ |
|---|
public: virtual void RemoveAt( int index ) override |
| F# |
|---|
abstract RemoveAt : index:int -> unit override RemoveAt : index:int -> unit |
| JScript |
|---|
public override function RemoveAt( index : int ) |
Parameters
- index
- Type: System..::..Int32
The zero-based index of the item to remove.
Implements
IList<(Of <(<'T>)>)>..::..RemoveAt(Int32)
Remarks
Note for inheritors: Call OnRemoving(ListWithEvents<(Of <<'(T>)>>)..::..CancelableItemIndexEventArgs) before removing item and OnRemoved(ListWithEvents<(Of <<'(T>)>>)..::..ItemIndexEventArgs) after removing item, do not forgot to check Cancel
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentOutOfRangeException | index is not a valid index in the ListWithEvents<(Of <(<'T>)>)>. |
| System..::..InvalidOperationException | Locked is True |
| 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 excption may be thrown by OnRemoving(ICollection, Nullable<(Of <<'(Int32>)>>)) when AllowItemCancel is true. |