ICustomTypeDescriptor.GetDefaultEvent 方法

定义

返回某个组件的此实例的默认事件。Returns the default event for this instance of a component.

public:
 System::ComponentModel::EventDescriptor ^ GetDefaultEvent();
public System.ComponentModel.EventDescriptor GetDefaultEvent ();
abstract member GetDefaultEvent : unit -> System.ComponentModel.EventDescriptor
Public Function GetDefaultEvent () As EventDescriptor

返回

EventDescriptor

表示此对象的默认事件的 EventDescriptor ;如果该对象没有事件,则为 nullAn EventDescriptor that represents the default event for this object, or null if this object does not have events.

适用于

另请参阅