TypeDelegator.GetEvents 方法

定義

傳回 EventInfo 物件的陣列,表示由目前的 TypeDelegator 所宣告或繼承的公用事件。

多載

GetEvents(BindingFlags)

傳回 bindingAttr 中所指定的事件,由目前的 TypeDelegator 所宣告或繼承。

GetEvents()

傳回 EventInfo 物件的陣列,表示由目前的 TypeDelegator 所宣告或繼承的公用事件。

GetEvents(BindingFlags)

來源:
TypeDelegator.cs
來源:
TypeDelegator.cs
來源:
TypeDelegator.cs

傳回 bindingAttr 中所指定的事件,由目前的 TypeDelegator 所宣告或繼承。

public:
 override cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo[] GetEvents (System.Reflection.BindingFlags bindingAttr);
override this.GetEvents : System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents (bindingAttr As BindingFlags) As EventInfo()

參數

bindingAttr
BindingFlags

位元遮罩,會影響搜尋的進行方式。 這個值是零或來自 BindingFlags 多個位元旗標的組合。

傳回

EventInfo 型別的陣列,包含 bindingAttr 中指定的事件。 如果沒有任何事件,則會傳回空白陣列。

適用於

GetEvents()

來源:
TypeDelegator.cs
來源:
TypeDelegator.cs
來源:
TypeDelegator.cs

傳回 EventInfo 物件的陣列,表示由目前的 TypeDelegator 所宣告或繼承的公用事件。

public:
 override cli::array <System::Reflection::EventInfo ^> ^ GetEvents();
public override System.Reflection.EventInfo[] GetEvents ();
override this.GetEvents : unit -> System.Reflection.EventInfo[]
Public Overrides Function GetEvents () As EventInfo()

傳回

陣列,包含目前類型已宣告或繼承的所有事件。 如果沒有任何事件,則會傳回空白陣列。

適用於