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