EventInfo.GetRemoveMethod メソッド

定義

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

オーバーロード

GetRemoveMethod(Boolean)

派生クラスでオーバーライドされた場合は、パブリックでないメソッドを返すかどうかを指定して、イベントのメソッドを削除する MethodInfo オブジェクトを取得します。

GetRemoveMethod()

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

GetRemoveMethod(Boolean)

派生クラスでオーバーライドされた場合は、パブリックでないメソッドを返すかどうかを指定して、イベントのメソッドを削除する MethodInfo オブジェクトを取得します。

public:
 abstract System::Reflection::MethodInfo ^ GetRemoveMethod(bool nonPublic);
public abstract System.Reflection.MethodInfo? GetRemoveMethod (bool nonPublic);
public abstract System.Reflection.MethodInfo GetRemoveMethod (bool nonPublic);
abstract member GetRemoveMethod : bool -> System.Reflection.MethodInfo
Public MustOverride Function GetRemoveMethod (nonPublic As Boolean) As MethodInfo

パラメーター

nonPublic
Boolean

パブリックでないメソッドを返すことができる場合はtrue 。それ以外の場合は false

戻り値

MethodInfo

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

実装

例外

nonPublictrue で、イベント ハンドラー デリゲートの追加に使用したメソッドはパブリックではなく、呼び出し元にはパブリックでないメソッドに対するリフレクションのアクセス許可がありません。

通常、このメソッドには次のシグネチャがあります。

remove_<EventName>(<EventHandlerType> handler)  

こちらもご覧ください

適用対象

GetRemoveMethod()

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

public:
 System::Reflection::MethodInfo ^ GetRemoveMethod();
public:
 virtual System::Reflection::MethodInfo ^ GetRemoveMethod();
public System.Reflection.MethodInfo? GetRemoveMethod ();
public System.Reflection.MethodInfo GetRemoveMethod ();
member this.GetRemoveMethod : unit -> System.Reflection.MethodInfo
abstract member GetRemoveMethod : unit -> System.Reflection.MethodInfo
override this.GetRemoveMethod : unit -> System.Reflection.MethodInfo
Public Function GetRemoveMethod () As MethodInfo

戻り値

MethodInfo

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

実装

通常、このメソッドには次のシグネチャがあります。

remove_<EventName>(<EventHandlerType> handler)  

こちらもご覧ください

適用対象