PropertyGridObject.ICustomTypeDescriptor.GetEvents メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロパティ グリッドのイベントのコレクションを返します。
オーバーロード
ICustomTypeDescriptor.GetEvents() |
プロパティ グリッドのイベントのコレクションを返します。 |
ICustomTypeDescriptor.GetEvents(Attribute[]) |
指定した属性の配列をフィルターとして使用して、プロパティ グリッドのイベントのコレクションを返します。 |
ICustomTypeDescriptor.GetEvents()
プロパティ グリッドのイベントのコレクションを返します。
virtual System::ComponentModel::EventDescriptorCollection ^ System.ComponentModel.ICustomTypeDescriptor.GetEvents() = System::ComponentModel::ICustomTypeDescriptor::GetEvents;
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents ();
Function GetEvents () As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
戻り値
EventDescriptorCollectionプロパティ グリッドのイベントを格納する オブジェクト。
実装
例
次の例では、 オーバーロードを <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEvents> 複製します。
EventDescriptorCollection MyGetEvents() {
return TypeDescriptor.GetEvents(this, true);
}
適用対象
ICustomTypeDescriptor.GetEvents(Attribute[])
指定した属性の配列をフィルターとして使用して、プロパティ グリッドのイベントのコレクションを返します。
virtual System::ComponentModel::EventDescriptorCollection ^ System.ComponentModel.ICustomTypeDescriptor.GetEvents(cli::array <Attribute ^> ^ attributes) = System::ComponentModel::ICustomTypeDescriptor::GetEvents;
System.ComponentModel.EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute[] attributes);
Function GetEvents (attributes As Attribute()) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
パラメーター
戻り値
EventDescriptorCollectionプロパティ グリッドの指定した属性に一致するイベントを格納している オブジェクト。
実装
例
次の例では、 オーバーロードを <xref:Microsoft.Web.Management.Client.PropertyGridObject.System.ComponentModel.ICustomTypeDescriptor.GetEvents%28System.Attribute%5B%5D%29> 複製します。
EventDescriptorCollection MyGetEvents(
Attribute[] attributes)
{
return TypeDescriptor.GetEvents(
this, attributes, true
);
}