SortedList<TKey,TValue>.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拿掉位於 SortedList<TKey,TValue>之指定索引處的專案。
public:
void RemoveAt(int index);
public void RemoveAt(int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
參數
- index
- Int32
要移除的元素的零基指數。
例外狀況
備註
元素會往上移動以填補空位,因此此方法是一個 O(n) 操作,其中 n 是 Count。