IListContract<T>.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除集合中 IListContract<T> 指定索引的項目。
public:
void RemoveAt(int index);
public void RemoveAt(int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
參數
- index
- Int32
要移除的項目索引。
例外狀況
本 IListContract<T> 合集為唯讀。
備註
在你喊 RemoveAt出 後,跟著被移除物品後的物品會移動到空出的位置。 移動項目的索引也會同步更新。
要判斷一個 IListContract<T> 集合是否為唯讀,請呼叫該 GetIsReadOnly 方法。