StateManagedCollection.OnRemove(Int32, Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파생 클래스에서 재정의되는 경우 또는 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 할 수 있습니다.