CurrentChangedEventManager.AddHandler メソッド

定義

指定したソースが CurrentChanged イベントを発生させると呼び出される、指定したイベント ハンドラーを追加します。

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 イベントを発生させるソース オブジェクト。

handler
EventHandler<EventArgs>

CurrentChanged イベントを発生させるソース オブジェクト。

例外

handlernullです。

注釈

このメソッドを使用して、 CurrentChanged イベントのサブスクライブに使用するイベント ハンドラーを指定します。 このメソッドを使用する場合、リスナー オブジェクトは IWeakEventListener インターフェイスを実装する必要はありません。

適用対象