PropertyDescriptor.GetChildProperties メソッド

定義

PropertyDescriptorCollection を返します。

オーバーロード

GetChildProperties()

既定の PropertyDescriptorCollection を返します。

GetChildProperties(Attribute[])

指定した属性配列をフィルターとして使用して、PropertyDescriptorCollection を返します。

GetChildProperties(Object)

指定したオブジェクトの PropertyDescriptorCollection を返します。

GetChildProperties(Object, Attribute[])

指定した属性配列をフィルターとして使用して、指定したオブジェクトの PropertyDescriptorCollection を返します。

GetChildProperties()

ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs

既定の PropertyDescriptorCollection を返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties();
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties ();
member this.GetChildProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties () As PropertyDescriptorCollection

戻り値

プロパティ記述子のコレクション。

注釈

このメソッドは、 null パラメーターと パラメーターの両方をfilterinstance渡します。

パラメーターの instance プロパティは、パラメーターがサイト化されている場合にコンテナーでプロパティを追加または削除できるため、クラスの instance プロパティとは異なる場合があります。

パラメーターはfilter、 オブジェクトと オブジェクトをAttribute混在Typeさせることができます。 フィルター処理は、次の規則によって定義されます。

  • Typeオブジェクトはワイルドカードとして扱われ、属性のセットに がType含まれるプロパティと一致します。

  • プロパティに同じクラスの が Attribute 含まれていない場合、プロパティは返される配列に含まれません。

  • 属性が のインスタンスである Attribute場合、 プロパティは、返される配列に含めるのに完全に一致する必要があります。

  • Attribute 指定し、それが既定のプロパティである場合は、 プロパティに のインスタンス Attribute がない場合でも、返される配列に含まれます。

こちらもご覧ください

適用対象

GetChildProperties(Attribute[])

ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs

指定した属性配列をフィルターとして使用して、PropertyDescriptorCollection を返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(cli::array <Attribute ^> ^ filter);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties (Attribute[] filter);
member this.GetChildProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (filter As Attribute()) As PropertyDescriptorCollection

パラメーター

filter
Attribute[]

フィルターとして使用する型 Attribute の配列。

戻り値

指定した属性に一致するプロパティを格納している PropertyDescriptorCollection

注釈

このメソッドは、 パラメーターをnullinstance渡します。

パラメーターがサイト化されている instance 場合、サイトでプロパティを追加または削除できるため、パラメーターのプロパティはクラスの instance プロパティとは異なる場合があります。

パラメーターはfilter、 オブジェクトと オブジェクトをAttribute混在Typeさせることができます。 フィルター処理は、次の規則によって定義されます。

  • Typeオブジェクトはワイルドカードとして扱われ、属性のセットに がType含まれるプロパティと一致します。

  • プロパティに同じクラスの が Attribute 含まれていない場合、プロパティは返される配列に含まれません。

  • 属性が のインスタンスである Attribute場合、 プロパティは、返される配列に含めるのに完全に一致する必要があります。

  • インスタンスを Attribute 指定し、それが既定のプロパティである場合、 プロパティに のインスタンス Attribute がない場合でも、返される配列に含まれます。

こちらもご覧ください

適用対象

GetChildProperties(Object)

ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs

指定したオブジェクトの PropertyDescriptorCollection を返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties (object instance);
member this.GetChildProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (instance As Object) As PropertyDescriptorCollection

パラメーター

instance
Object

プロパティを取得する対象のコンポーネント。

戻り値

指定されたコンポーネントのプロパティを持つ PropertyDescriptorCollection

注釈

このメソッドは、 パラメーターをnullfilter渡します。

パラメーターがサイト化されている instance 場合、サイトでプロパティを追加または削除できるため、パラメーターのプロパティはクラスの instance プロパティとは異なる場合があります。

パラメーターはfilter、 オブジェクトと オブジェクトをAttribute混在Typeさせることができます。 フィルター処理は、次の規則によって定義されます。

  • Typeオブジェクトはワイルドカードとして扱われ、属性のセットに がType含まれるプロパティと一致します。

  • プロパティに同じクラスの が Attribute 含まれていない場合、プロパティは返される配列に含まれません。

  • 属性が のインスタンスである Attribute場合、 プロパティは、返される配列に含めるのに完全に一致する必要があります。

  • インスタンスを Attribute 指定し、それが既定のプロパティである場合、 プロパティに のインスタンス Attribute がない場合でも、返される配列に含まれます。

こちらもご覧ください

適用対象

GetChildProperties(Object, Attribute[])

ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs
ソース:
PropertyDescriptor.cs

指定した属性配列をフィルターとして使用して、指定したオブジェクトの PropertyDescriptorCollection を返します。

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance, cli::array <Attribute ^> ^ filter);
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties (object instance, Attribute[] filter);
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties (object? instance, Attribute[]? filter);
abstract member GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetChildProperties (instance As Object, filter As Attribute()) As PropertyDescriptorCollection

パラメーター

instance
Object

プロパティを取得する対象のコンポーネント。

filter
Attribute[]

フィルターとして使用する型 Attribute の配列。

戻り値

指定のコンポーネントの指定した属性と一致するプロパティを持つ PropertyDescriptorCollection

注釈

パラメーターがサイト化されている instance 場合、サイトでプロパティを追加または削除できるため、パラメーターのプロパティはクラスの instance プロパティとは異なる場合があります。

パラメーターはfilter、 オブジェクトと オブジェクトをAttribute混在Typeさせることができます。 フィルター処理は、次の規則によって定義されます。

  • Typeオブジェクトはワイルドカードとして扱われ、属性のセットに がType含まれるプロパティと一致します。

  • プロパティに同じクラスの が Attribute 含まれていない場合、プロパティは返される配列に含まれません。

  • 属性が のインスタンスである Attribute場合、 プロパティは、返される配列に含めるのに完全に一致する必要があります。

  • インスタンスを Attribute 指定し、それが既定のプロパティである場合、 プロパティに のインスタンス Attribute がない場合でも、返される配列に含まれます。

通常、子プロパティは、このプロパティから返される のメンバーをGetPropertiesTypeConverter実装することによって返される必要があります。

こちらもご覧ください

適用対象