ServiceDescriptionBaseCollection.OnInsertComplete(Int32, Object) 方法

定義

當插入新的項目至 ServiceDescriptionBaseCollection 時,執行額外的自訂處理。

protected:
 override void OnInsertComplete(int index, System::Object ^ value);
protected override void OnInsertComplete (int index, object value);
override this.OnInsertComplete : int * obj -> unit
Protected Overrides Sub OnInsertComplete (index As Integer, value As Object)

參數

index
Int32

以零起始的索引,value 參數要在此處插入。

value
Object

要插入至集合的項目。

備註

此方法的預設實作是要由衍生類別覆寫,以在插入指定的專案時執行某些動作。 例如,衍生類別可能需要額外的驗證。

這個受保護的方法只能透過這個類別或衍生類別來存取。

適用於