PropertyGridObject.ICustomTypeDescriptor.GetDefaultEvent メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロパティ グリッドの既定のイベントを返します。
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);
}