Share via


PropertyGridObject.ICustomTypeDescriptor.GetDefaultEvent Method

Definition

Returns the default event for the property grid.

 virtual System::ComponentModel::EventDescriptor ^ System.ComponentModel.ICustomTypeDescriptor.GetDefaultEvent() = System::ComponentModel::ICustomTypeDescriptor::GetDefaultEvent;
System.ComponentModel.EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ();
Function GetDefaultEvent () As EventDescriptor Implements ICustomTypeDescriptor.GetDefaultEvent

Returns

A EventDescriptor object that contains the default event, or null if there are no events.

Implements

Examples

The following example duplicates the <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetDefaultEvent%2A> method.

EventDescriptor MyGetDefaultEvent() {
    return TypeDescriptor.GetDefaultEvent(this, true);
} 

Applies to