DataBus.GetEvents 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索由DataBus控制声明的所有公共事件。
重载
| 名称 | 说明 |
|---|---|
| GetEvents() |
返回DataBus控制的事件。 |
| GetEvents(Attribute[]) |
返回 DataBus 控制的过滤事件描述符集合。 |
GetEvents()
返回DataBus控制的事件。
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public System.ComponentModel.EventDescriptorCollection GetEvents();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents () As EventDescriptorCollection
返回
一个 EventDescriptorCollection 表示DataBus控制事件的对象。
实现
适用于
GetEvents(Attribute[])
返回 DataBus 控制的过滤事件描述符集合。
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents(Attribute[] attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (attributes As Attribute()) As EventDescriptorCollection
参数
- attributes
- Attribute[]
一个属性数组,用作过滤器。
返回
一个 EventDescriptorCollection 包含DataBus控件事件描述的对象。