_EventInfo.GetRaiseMethod 方法

定义

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

重载

GetRaiseMethod()

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

GetRaiseMethod(Boolean)

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

注解

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

方法 GetRaiseMethod 返回引发事件时调用的方法。

GetRaiseMethod()

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

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

返回

引发事件时所调用的方法。

注解

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

方法 GetRaiseMethod 返回引发事件时调用的方法。

适用于

GetRaiseMethod(Boolean)

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

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

参数

nonPublic
Boolean

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

返回

在引发该事件时调用的 MethodInfo 对象。

注解

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

方法 GetRaiseMethod 返回引发事件时调用的方法,并指定是否返回非公共方法。

适用于