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

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

value
Object

에 삽입할 개체입니다 StateManagedCollection.

설명

파생된 StateManagedCollection 컬렉션은 메서드 OnInsert 를 사용하여 항목이 컬렉션에 IList.Add 추가되기 전에 추가 작업을 수행하도록 메서드를 재정의 IList.Insert 할 수 있습니다.

적용 대상

추가 정보