PropertyDescriptor.GetChildProperties メソッド

定義

PropertyDescriptorCollectionを返します。

オーバーロード

名前 説明
GetChildProperties()

既定の PropertyDescriptorCollectionを返します。

GetChildProperties(Attribute[])

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

GetChildProperties(Object)

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

GetChildProperties(Object, Attribute[])

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

GetChildProperties()

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

既定の PropertyDescriptorCollectionを返します。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties();
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
member this.GetChildProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties () As PropertyDescriptorCollection

返品

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

属性

注釈

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

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

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

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

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

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

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

こちらもご覧ください

適用対象

GetChildProperties(Attribute[])

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

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

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(cli::array <Attribute ^> ^ filter);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(Attribute[] filter);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(Attribute[] filter);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
member this.GetChildProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (filter As Attribute()) As PropertyDescriptorCollection

パラメーター

filter
Attribute[]

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

返品

指定した属性と一致するプロパティを持つ PropertyDescriptorCollection

属性

注釈

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

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

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

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

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

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

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

こちらもご覧ください

適用対象

GetChildProperties(Object)

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

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

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered.")>]
member this.GetChildProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (instance As Object) As PropertyDescriptorCollection

パラメーター

instance
Object

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

返品

指定したコンポーネントのプロパティを含む PropertyDescriptorCollection

属性

注釈

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

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

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

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

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

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

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

こちらもご覧ください

適用対象

GetChildProperties(Object, Attribute[])

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

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

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance, cli::array <Attribute ^> ^ filter);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object? instance, Attribute[]? filter);
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
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 パラメーターは、TypeオブジェクトとAttribute オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。

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

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

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

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

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

こちらもご覧ください

適用対象