TypeDelegator.GetEvents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回表示当前EventInfo声明或继承的所有公共事件的对象数组TypeDelegator。
重载
| 名称 | 说明 |
|---|---|
| GetEvents(BindingFlags) |
返回当前 |
| GetEvents() |
返回表示当前EventInfo声明或继承的所有公共事件的对象数组 |
GetEvents(BindingFlags)
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- 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()
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- TypeDelegator.cs
- Source:
- 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()
返回
一个数组,其中包含当前类型声明或继承的所有事件。 如果没有事件,则返回空数组。
- 属性