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 this instance of a component.
public:
System::ComponentModel::EventDescriptor ^ GetDefaultEvent();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
public System.ComponentModel.EventDescriptor? GetDefaultEvent();
public 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
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
Public Function GetDefaultEvent () As EventDescriptor
Returns
An EventDescriptor that represents the default event for this object, or null if this object does not have events.
- Attributes