Edit

Share via


CustomTypeDescriptor.GetDefaultEvent Method

Definition

Returns the event descriptor for the default event of the object represented by this type descriptor.

public:
 virtual System::ComponentModel::EventDescriptor ^ GetDefaultEvent();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
public virtual System.ComponentModel.EventDescriptor? GetDefaultEvent();
public virtual System.ComponentModel.EventDescriptor GetDefaultEvent();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")>]
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
override this.GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
override this.GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
Public Overridable Function GetDefaultEvent () As EventDescriptor

Returns

The EventDescriptor for the default event on the object represented by this type descriptor. The default is null.

Implements

Attributes

Remarks

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

Applies to

See also