Share via


PropertyGridObject.ICustomTypeDescriptor.GetEvents Method

Definition

Returns the collection of events for the property grid.

Overloads

ICustomTypeDescriptor.GetEvents()

Returns the collection of events for the property grid.

ICustomTypeDescriptor.GetEvents(Attribute[])

Returns the collection of events for the property grid, using the specified array of attributes as a filter.

ICustomTypeDescriptor.GetEvents()

Returns the collection of events for the property grid.

 virtual System::ComponentModel::EventDescriptorCollection ^ System.ComponentModel.ICustomTypeDescriptor.GetEvents() = System::ComponentModel::ICustomTypeDescriptor::GetEvents;
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents ();
Function GetEvents () As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents

Returns

A EventDescriptorCollection object that contains the events for the property grid.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEvents> overload.

EventDescriptorCollection MyGetEvents() {
    return TypeDescriptor.GetEvents(this, true);
} 

Applies to

ICustomTypeDescriptor.GetEvents(Attribute[])

Returns the collection of events for the property grid, using the specified array of attributes as a filter.

 virtual System::ComponentModel::EventDescriptorCollection ^ System.ComponentModel.ICustomTypeDescriptor.GetEvents(cli::array <Attribute ^> ^ attributes) = System::ComponentModel::ICustomTypeDescriptor::GetEvents;
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes);
Function GetEvents (attributes As Attribute()) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents

Parameters

attributes
Attribute[]

An array of Attribute objects with which to filter the events.

Returns

A EventDescriptorCollection object that contains the events that match the specified attributes for the property grid.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEvents%28System.Attribute%5B%5D%29> overload.

EventDescriptorCollection MyGetEvents(
    Attribute[] attributes) 
{
    return TypeDescriptor.GetEvents(
        this, attributes, true
        );
} 

Applies to