ParameterCollection.OnInsert(Int32, Object) 方法

定義

在呼叫 Insert(Int32, Parameter) 方法之前發生。

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

參數

index
Int32

集合中的索引,在此處插入 Parameter

value
Object

Parameter,插入至 ParameterCollection

備註

系統會 OnInsert 呼叫 方法,以在呼叫 方法之前 Insert 執行其他處理。

給繼承者的注意事項

這個方法可讓實作者定義必須在將專案插入基礎集合之前執行的進程。 藉由定義此方法,實作者可以將功能新增至繼承的方法,而不需要覆寫所有其他方法。

適用於

另請參閱