PropertyGridObject.ICustomTypeDescriptor.GetDefaultEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
}