StateManagedCollection.OnRemove(Int32, Object) 메서드

정의

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

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

매개 변수

index
Int32

제거할 항목의 인덱스(0부터 시작)이며 IList.RemoveAt(Int32)이 호출될 때 사용됩니다.

value
Object

StateManagedCollection에서 제거할 개체이며 IList.Remove(Object)가 호출될 때 사용됩니다.

설명

파생 된 컬렉션 StateManagedCollection 재정의할 수는 OnRemove 메서드를 사용 하 여 컬렉션에서 항목을 제거 하기 전에 추가 작업을 수행 합니다 IList.Remove 또는 IList.RemoveAt 메서드.

적용 대상

추가 정보