Redigera

Dela via


ICustomTypeDescriptor.GetEventsFromRegisteredType Method

Definition

Returns the events for this instance of a component that might be registered.

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

Returns

An EventDescriptorCollection that represents the events for this component instance.

Remarks

The events for this instance can differ from the set of events that the class provides. For example, if the component is site-based, the site can add or remove additional events.

Implementors can return EventDescriptorCollection.Empty if no properties are specified. This method should never return null.

Applies to