StateManagedCollection.IList.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除 IStateManager 指定索引上的元素。
virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt(int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt
參數
- index
- Int32
要移除的項目的零基指數。
實作
例外狀況
備註
OnValidate在從集合中移除值之前,會呼叫該方法來驗證value。
OnRemove方法在物件OnRemoveComplete移除前被呼叫,物件移除後呼叫。