CurrentChangedEventManager.AddHandler(ICollectionView, EventHandler<EventArgs>) 메서드
정의
지정된 소스가 CurrentChanged 이벤트를 발생시킬 때 호출되는 지정된 이벤트 처리기를 추가합니다.Adds the specified event handler, which is called when specified source raises the CurrentChanged event.
public:
static void AddHandler(System::ComponentModel::ICollectionView ^ source, EventHandler<EventArgs ^> ^ handler);
public static void AddHandler (System.ComponentModel.ICollectionView source, EventHandler<EventArgs> handler);
static member AddHandler : System.ComponentModel.ICollectionView * EventHandler<EventArgs> -> unit
Public Shared Sub AddHandler (source As ICollectionView, handler As EventHandler(Of EventArgs))
매개 변수
- source
- ICollectionView
CurrentChanged 이벤트를 발생하는 소스 개체입니다.The source object that the raises the CurrentChanged event.
- handler
- EventHandler<EventArgs>
CurrentChanged 이벤트를 발생하는 소스 개체입니다.The source object that the raises the CurrentChanged event.
예외
handler
가 null
인 경우handler
is null
.
설명
이 메서드를 사용 하 여 이벤트를 구독 하는 CurrentChanged 데 사용 하려는 이벤트 처리기를 지정 합니다.Use this method to specify the event handler you want to use to subscribe to the CurrentChanged event. 이 메서드를 사용 하면 수신기 개체 구현 않아도 IWeakEventListener 인터페이스입니다.When you use this method, your listener object does not need to implement the IWeakEventListener interface.