ServiceDescriptionBaseCollection.OnRemove(Int32, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 中移除一個元素。ServiceDescriptionBaseCollection
protected:
override void OnRemove(int index, System::Object ^ value);
protected override void OnRemove(int index, object value);
override this.OnRemove : int * obj -> unit
Protected Overrides Sub OnRemove (index As Integer, value As Object)
參數
- index
- Int32
要移除參數的 value 零基指數。
- value
- Object
要從集合中移除的元素。
備註
此方法旨在被覆寫,以便在元素從集合中移除時執行額外程序,例如驗證。
此受保護方法僅能透過此類別或衍生類別存取。