StateManagedCollection.IList.Remove(Object) 方法

定義

StateManagedCollection 集合中移除指定物件的第一個符合項目。Removes the first occurrence of the specified object from the StateManagedCollection collection.

 virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
abstract member System.Collections.IList.Remove : obj -> unit
override this.System.Collections.IList.Remove : obj -> unit
Sub Remove (value As Object) Implements IList.Remove

參數

value
Object

要從 StateManagedCollection 移除的物件。The object to remove from the StateManagedCollection.

實作

例外狀況

備註

OnValidate value 從集合中移除值之前,會呼叫方法以進行驗證。The OnValidate method is called to validate value before the value is removed from the collection. OnRemove方法會在移除物件之前呼叫,並在 OnRemoveComplete 移除物件之後呼叫方法。The OnRemove method is called before the object is removed, and the OnRemoveComplete method is called after the object is removed.

適用於

另請參閱