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.

適用於

另請參閱