PropertyDescriptor.GetChildProperties メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetChildProperties() |
既定の PropertyDescriptorCollectionを返します。 |
| GetChildProperties(Attribute[]) |
指定した属性配列をフィルターとして使用して PropertyDescriptorCollection を返します。 |
| GetChildProperties(Object) |
特定のオブジェクトの PropertyDescriptorCollection を返します。 |
| GetChildProperties(Object, Attribute[]) |
指定した属性配列をフィルターとして使用して、特定のオブジェクトの PropertyDescriptorCollection を返します。 |
GetChildProperties()
既定の 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 オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。
プロパティに同じクラスの Attribute がない場合、プロパティは返される配列に含まれません。
属性が Attributeのインスタンスである場合、返される配列に含めるプロパティは完全に一致している必要があります。
Attributeを指定し、それが既定のプロパティである場合、プロパティにAttributeのインスタンスがない場合でも、返される配列に含まれます。
こちらもご覧ください
適用対象
GetChildProperties(Attribute[])
指定した属性配列をフィルターとして使用して 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
パラメーター
返品
指定した属性と一致するプロパティを持つ PropertyDescriptorCollection 。
- 属性
注釈
このメソッドは、null パラメーターのinstanceを渡します。
instance パラメーターのプロパティは、instance パラメーターがサイト化されている場合にサイトでプロパティを追加または削除できるため、クラスのプロパティとは異なる場合があります。
filter パラメーターは、TypeオブジェクトとAttribute オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。
プロパティに同じクラスの Attribute がない場合、プロパティは返される配列に含まれません。
属性が Attributeのインスタンスである場合、返される配列に含めるプロパティは完全に一致している必要があります。
Attributeインスタンスを指定し、それが既定のプロパティである場合、プロパティにAttributeのインスタンスがない場合でも、返される配列に含まれます。
こちらもご覧ください
適用対象
GetChildProperties(Object)
特定のオブジェクトの 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 オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。
プロパティに同じクラスの Attribute がない場合、プロパティは返される配列に含まれません。
属性が Attributeのインスタンスである場合、返される配列に含めるプロパティは完全に一致している必要があります。
Attributeインスタンスを指定し、それが既定のプロパティである場合、プロパティにAttributeのインスタンスがない場合でも、返される配列に含まれます。
こちらもご覧ください
適用対象
GetChildProperties(Object, Attribute[])
指定した属性配列をフィルターとして使用して、特定のオブジェクトの 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
プロパティを取得するコンポーネント。
返品
指定したコンポーネントの指定した属性と一致するプロパティを持つ PropertyDescriptorCollection 。
- 属性
注釈
instance パラメーターのプロパティは、instance パラメーターがサイト化されている場合にサイトでプロパティを追加または削除できるため、クラスのプロパティとは異なる場合があります。
filter パラメーターは、TypeオブジェクトとAttribute オブジェクトを混在させることができます。 フィルター処理は、次の規則によって定義されます。
プロパティに同じクラスの Attribute がない場合、プロパティは返される配列に含まれません。
属性が Attributeのインスタンスである場合、返される配列に含めるプロパティは完全に一致している必要があります。
Attributeインスタンスを指定し、それが既定のプロパティである場合、プロパティにAttributeのインスタンスがない場合でも、返される配列に含まれます。
通常、子プロパティは、このプロパティから返されるGetPropertiesのTypeConverter メンバーを実装することによって返される必要があります。