次の方法で共有


EventInfo.GetRemoveMethod メソッド ()

イベント ハンドラ デリゲートをイベント ソースから削除するために使用するメソッドを返します。

Overloads Public Function GetRemoveMethod() As MethodInfo
[C#]
public MethodInfo GetRemoveMethod();
[C++]
public: MethodInfo* GetRemoveMethod();
[JScript]
public function GetRemoveMethod() : MethodInfo;

戻り値

イベント ハンドラ デリゲートをイベント ソースから削除するために使用するメソッドを表す MethodInfo オブジェクト。

使用例

通常、メソッドは次のシグネチャを持ちます。

remove_<EventName>(<EventHandlerType> handler)

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

.NET Framework セキュリティ:

参照

EventInfo クラス | EventInfo メンバ | System.Reflection 名前空間 | EventInfo.GetRemoveMethod オーバーロードの一覧 | MethodInfo