次の方法で共有


PropertyGridObject.ICustomTypeDescriptor.GetEvents メソッド

定義

プロパティ グリッドのイベントのコレクションを返します。

オーバーロード

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

パラメーター

attributes
Attribute[]

イベントを Attribute フィルター処理するオブジェクトの配列。

戻り値

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
        );
} 

適用対象