CurrentChangingEventManager.AddHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified event handler, which is called when specified source raises the CurrentChanging event.
public:
static void AddHandler(System::ComponentModel::ICollectionView ^ source, EventHandler<System::ComponentModel::CurrentChangingEventArgs ^> ^ handler);
public static void AddHandler(System.ComponentModel.ICollectionView source, EventHandler<System.ComponentModel.CurrentChangingEventArgs> handler);
static member AddHandler : System.ComponentModel.ICollectionView * EventHandler<System.ComponentModel.CurrentChangingEventArgs> -> unit
Public Shared Sub AddHandler (source As ICollectionView, handler As EventHandler(Of CurrentChangingEventArgs))
Parameters
- source
- ICollectionView
The source object that the raises the CurrentChanging event.
- handler
- EventHandler<CurrentChangingEventArgs>
The delegate that handles the CurrentChanging event.
Exceptions
handler
is null
.
Remarks
Use this method to specify the event handler you want to use to subscribe to the CurrentChanging event. When you use this method, your listener object does not need to implement the IWeakEventListener interface.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET