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.RemoveIList.RemoveAt 할 수 있습니다.

적용 대상

추가 정보