StateManagedCollection.OnInsert(Int32, Object) 메서드

정의

파생 클래스에서 재정의된 경우 IList.Insert(Int32, Object) 또는 IList.Add(Object) 메서드가 컬렉션에 항목을 추가하기 전에 추가 작업을 수행합니다.

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

매개 변수

index
Int32

IList.Insert(Int32, Object) 메서드가 value를 삽입해야 하는 인덱스이며 0부터 시작합니다.

value
Object

StateManagedCollection에 삽입할 개체입니다.

설명

파생 된 컬렉션 StateManagedCollection 재정의할 수는 OnInsert 항목을 사용 하 여 컬렉션에 추가 되기 전에 추가 작업을 수행 하는 메서드는 IList.Add 또는 IList.Insert 메서드.

적용 대상

추가 정보