ICustomTypeDescriptor.GetEventsFromRegisteredType 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回可能注册的组件的此实例的事件。
public:
virtual System::ComponentModel::EventDescriptorCollection ^ GetEventsFromRegisteredType();
public virtual System.ComponentModel.EventDescriptorCollection GetEventsFromRegisteredType();
abstract member GetEventsFromRegisteredType : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEventsFromRegisteredType : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEventsFromRegisteredType () As EventDescriptorCollection
返回
一个 EventDescriptorCollection 表示此组件实例的事件。
注解
此实例的事件可能与类提供的事件集不同。 例如,如果组件是基于站点的,则站点可以添加或删除其他事件。
如果未指定任何属性,则实现器可以返回 EventDescriptorCollection.Empty 。 此方法绝不应返回 null。