次の方法で共有


PropertyGridObject.ICustomTypeDescriptor.GetDefaultEvent メソッド

定義

プロパティ グリッドの既定のイベントを返します。

 virtual System::ComponentModel::EventDescriptor ^ System.ComponentModel.ICustomTypeDescriptor.GetDefaultEvent() = System::ComponentModel::ICustomTypeDescriptor::GetDefaultEvent;
System.ComponentModel.EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ();
Function GetDefaultEvent () As EventDescriptor Implements ICustomTypeDescriptor.GetDefaultEvent

戻り値

既定の EventDescriptor イベントを含むオブジェクト、または null イベントがない場合は 。

実装

次の例では、 メソッドを <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetDefaultEvent%2A> 複製します。

EventDescriptor MyGetDefaultEvent() {
    return TypeDescriptor.GetDefaultEvent(this, true);
} 

適用対象