_EventInfo.GetRemoveMethod 方法

定义

为 COM 对象提供对 GetRemoveMethod 方法的与版本无关的访问。

重载

GetRemoveMethod(Boolean)

为 COM 对象提供对 GetRemoveMethod(Boolean) 方法的与版本无关的访问。

GetRemoveMethod()

为 COM 对象提供对 GetRemoveMethod() 方法的与版本无关的访问。

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。

GetRemoveMethod方法返回用于从事件源中删除事件处理程序委托的方法。

GetRemoveMethod(Boolean)

为 COM 对象提供对 GetRemoveMethod(Boolean) 方法的与版本无关的访问。

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

参数

nonPublic
Boolean

如果返回非公共方法,则为 true;否则为 false

返回

MethodInfo

一个 MethodInfo 对象,表示用于从事件源移除事件处理程序委托的方法。

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。

GetRemoveMethod方法检索 对象以删除 事件的方法,并 MethodInfo 指定是否返回非公共方法。

适用于

GetRemoveMethod()

为 COM 对象提供对 GetRemoveMethod() 方法的与版本无关的访问。

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

返回

MethodInfo

一个 MethodInfo 对象,表示用于从事件源移除事件处理程序委托的方法。

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。

GetRemoveMethod方法返回用于从事件源中删除事件处理程序委托的方法。

适用于