共用方式為


OneOrMany<T>.RemoveAt(Int32) Method

Definition

Remove the item at the specified index from the collection.

public:
 void RemoveAt(int index);
public:
 void RemoveAt(int index);
void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parameters

index
Int32

The zero-based index of the item to be removed.

Exceptions

The index is negative or off the end of the collection.

Applies to