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

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

戻り値

PropertyDescriptorCollection

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

注釈

この 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

データ ソースのコレクション プロパティに格納されている項目の型のプロパティを示す 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

指定したデータ ソースのコレクション プロパティに格納されている項目の型のプロパティを示す PropertyDescriptorCollection

例外

指定したデータ ソースに、指定したデータ メンバーが存在しませんでした。

注釈

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

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

こちらもご覧ください

適用対象