_EventInfo.GetRaiseMethod 方法

定義

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

多載

GetRaiseMethod()

為 COM 物件提供與版本無關的 GetRaiseMethod() 方法之存取權。

GetRaiseMethod(Boolean)

為 COM 物件提供與版本無關的 GetRaiseMethod(Boolean) 方法之存取權。

備註

這個方法適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

方法 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

傳回

引發事件時所呼叫的方法。

備註

這個方法適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

方法會 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 物件。

備註

這個方法適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

方法會 GetRaiseMethod 傳回引發事件時呼叫的方法,並指定是否要傳回非公用方法。

適用於