ListBindingHelper.GetListItemProperties メソッド

定義

リストまたはリスト自体に含まれる項目のプロパティを記述する PropertyDescriptorCollection を返します。

オーバーロード

名前 説明
GetListItemProperties(Object)

指定したデータ ソースに含まれる項目の種類のプロパティ、または指定したデータ ソースのプロパティを記述する PropertyDescriptorCollection を返します。

GetListItemProperties(Object, PropertyDescriptor[])

データ ソースのコレクション プロパティに含まれる項目の種類のプロパティを記述する PropertyDescriptorCollection を返します。 指定した PropertyDescriptor 配列を使用して、調べるプロパティを指定します。

GetListItemProperties(Object, String, PropertyDescriptor[])

データ ソースの指定したデータ メンバーに含まれる項目の種類のプロパティを記述する PropertyDescriptorCollection を返します。 指定した PropertyDescriptor 配列を使用して、調べるプロパティを指定します。

GetListItemProperties(Object)

指定したデータ ソースに含まれる項目の種類のプロパティ、または指定したデータ ソースのプロパティを記述する PropertyDescriptorCollection を返します。

public:
 static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ list);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties(object list);
static member GetListItemProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (list As Object) As PropertyDescriptorCollection

パラメーター

list
Object

プロパティ情報を調べるデータ ソース。

返品

listに含まれる項目のプロパティ、またはlistのプロパティを含むPropertyDescriptorCollection

注釈

GetListItemProperties メソッドは、データ ソースのプロパティのコレクションを調べるのに使用されます。 このメソッドのアクションは、次の表に従って、 list パラメーターの実際の型によって異なります。

パラメーターのタイプ アクション
項目のリストまたはコレクションである型。 リストに含まれる項目の種類のプロパティを記述する PropertyDescriptorCollection を返します。
リストまたはコレクションではない型。 型のプロパティを記述する PropertyDescriptorCollection を返します。
null 空の PropertyDescriptorCollectionを返します。

こちらもご覧ください

適用対象

GetListItemProperties(Object, PropertyDescriptor[])

データ ソースのコレクション プロパティに含まれる項目の種類のプロパティを記述する PropertyDescriptorCollection を返します。 指定した PropertyDescriptor 配列を使用して、調べるプロパティを指定します。

public:
 static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ list, cli::array <System::ComponentModel::PropertyDescriptor ^> ^ listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties(object list, System.ComponentModel.PropertyDescriptor[] listAccessors);
static member GetListItemProperties : obj * System.ComponentModel.PropertyDescriptor[] -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (list As Object, listAccessors As PropertyDescriptor()) As PropertyDescriptorCollection

パラメーター

list
Object

プロパティ情報を調べるデータ ソース。

listAccessors
PropertyDescriptor[]

調べるデータ ソースのプロパティを記述する PropertyDescriptor 配列。 これは null でもかまいません。

返品

PropertyDescriptorCollectionデータ ソースのコレクション プロパティに含まれる項目の種類のプロパティを記述します。

注釈

GetListItemProperties メソッドは、データ ソースに項目のコレクションであるプロパティがあり、コレクション型のプロパティではなく、コレクション内のアイテム型のプロパティを知る必要がある場合に便利です。

こちらもご覧ください

適用対象

GetListItemProperties(Object, String, PropertyDescriptor[])

データ ソースの指定したデータ メンバーに含まれる項目の種類のプロパティを記述する PropertyDescriptorCollection を返します。 指定した PropertyDescriptor 配列を使用して、調べるプロパティを指定します。

public:
 static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ dataSource, System::String ^ dataMember, cli::array <System::ComponentModel::PropertyDescriptor ^> ^ listAccessors);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties(object dataSource, string dataMember, System.ComponentModel.PropertyDescriptor[] listAccessors);
static member GetListItemProperties : obj * string * System.ComponentModel.PropertyDescriptor[] -> System.ComponentModel.PropertyDescriptorCollection
Public Shared Function GetListItemProperties (dataSource As Object, dataMember As String, listAccessors As PropertyDescriptor()) As PropertyDescriptorCollection

パラメーター

dataSource
Object

プロパティ情報を調べるデータ ソース。

dataMember
String

プロパティ情報を調べる省略可能なデータ メンバー。 これは null でもかまいません。

listAccessors
PropertyDescriptor[]

調べるデータ メンバーのプロパティを記述する PropertyDescriptor 配列。 これは null でもかまいません。

返品

PropertyDescriptorCollection指定したデータ ソースのコレクション プロパティに含まれる項目の種類のプロパティを記述します。

例外

指定したデータ メンバーが、指定したデータ ソースで見つかりませんでした。

注釈

dataMember パラメーターをnullできます。この場合、GetListItemProperties メソッドはデータ ソースとPropertyDescriptor配列を使用してプロパティの説明を返します。

GetListItemProperties は、データ メンバーに項目のコレクションであるプロパティがあり、コレクション型のプロパティではなく、コレクション内の項目型のプロパティを知る必要がある場合に便利です。

こちらもご覧ください

適用対象