語言

TypeDelegator.GetEvents 方法

定義

回傳一個物件陣列 EventInfo ,代表目前宣告或繼承 TypeDelegator的所有公開事件。

多載

名稱 Description
GetEvents(BindingFlags)

回傳中 bindingAttr 指定的事件,這些事件已被當前 TypeDelegator宣告或繼承。

GetEvents()

回傳一個物件陣列 EventInfo ,代表目前宣告或繼承 TypeDelegator的所有公開事件。

GetEvents(BindingFlags)

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

回傳中 bindingAttr 指定的事件,這些事件已被當前 TypeDelegator宣告或繼承。

public:
 override cli::array <System::Reflection::EventInfo ^> ^ GetEvents(System::Reflection::BindingFlags bindingAttr);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)]
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr);
public override System.Reflection.EventInfo[] GetEvents(System.Reflection.BindingFlags bindingAttr);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicEvents | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicEvents)>]
override this.GetEvents : System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
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
來源:
TypeDelegator.cs
來源:
TypeDelegator.cs

回傳一個物件陣列 EventInfo ,代表目前宣告或繼承 TypeDelegator的所有公開事件。

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

傳回

一個陣列,包含目前類型宣告或繼承的所有事件。 若無事件,則回傳一個空陣列。

屬性

適用於