แก้ไข

แชร์ผ่าน


CustomTypeDescriptor.GetEvents Method

Definition

Returns a collection of event descriptors for the object represented by this type descriptor.

Overloads

GetEvents()

Returns a collection of event descriptors for the object represented by this type descriptor.

GetEvents(Attribute[])

Returns a filtered collection of event descriptors for the object represented by this type descriptor.

Remarks

The GetEvents method returns a collection of event descriptors for the object this type descriptor is representing. An optional attribute array may be provided to filter the collection that is returned. If no parent is provided, the method will return Empty.

GetEvents()

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

Returns a collection of event descriptors for the object represented by this type descriptor.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents();
public virtual System.ComponentModel.EventDescriptorCollection GetEvents ();
abstract member GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : unit -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents () As EventDescriptorCollection

Returns

An EventDescriptorCollection containing the event descriptors for the object represented by this type descriptor. The default is Empty.

Implements

Remarks

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEvents method will call the parent's corresponding method.

See also

Applies to

GetEvents(Attribute[])

Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs
Source:
CustomTypeDescriptor.cs

Returns a filtered collection of event descriptors for the object represented by this type descriptor.

public:
 virtual System::ComponentModel::EventDescriptorCollection ^ GetEvents(cli::array <Attribute ^> ^ attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[] attributes);
public virtual System.ComponentModel.EventDescriptorCollection GetEvents (Attribute[]? attributes);
abstract member GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
override this.GetEvents : Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Overridable Function GetEvents (attributes As Attribute()) As EventDescriptorCollection

Parameters

attributes
Attribute[]

An array of attributes to use as a filter. This can be null.

Returns

An EventDescriptorCollection containing the event descriptions for the object represented by this type descriptor. The default is Empty.

Implements

Remarks

You can use the attributes parameter to filter the collection that is returned.

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetEvents method will call the parent's corresponding method.

See also

Applies to