語言

_EventInfo.GetRaiseMethod 方法

定義

提供 COM 物件對方法的版本無關存取 GetRaiseMethod 權。

多載

名稱 Description
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 方法回傳事件被提出時所呼叫的方法,並指定是否回傳非公開方法。

適用於