イベント ハンドラ デリゲートをイベント ソースから削除するために使用するメソッドを返します。
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 セキュリティ:
- ReflectionPermission (Type.InvokeMember などの機構を通じて遅延バインディングで呼び出すときに必要なアクセス許可) ReflectionPermissionFlag.MemberAccess (関連する列挙体)
参照
EventInfo クラス | EventInfo メンバ | System.Reflection 名前空間 | EventInfo.GetRemoveMethod オーバーロードの一覧 | MethodInfo