Bearbeiten

Freigeben über


ListBindingHelper.GetListItemProperties Method

Definition

Returns a PropertyDescriptorCollection that describes the properties of the items contained in the list or the list itself.

Overloads

GetListItemProperties(Object)

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in a specified data source, or properties of the specified data source.

GetListItemProperties(Object, PropertyDescriptor[])

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in a collection property of a data source. Uses the specified PropertyDescriptor array to indicate which properties to examine.

GetListItemProperties(Object, String, PropertyDescriptor[])

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in the specified data member of a data source. Uses the specified PropertyDescriptor array to indicate which properties to examine.

GetListItemProperties(Object)

Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in a specified data source, or properties of the specified data source.

public:
 static System::ComponentModel::PropertyDescriptorCollection ^ GetListItemProperties(System::Object ^ list);
public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (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

Parameters

list
Object

The data source to examine for property information.

Returns

The PropertyDescriptorCollection containing the properties of the items contained in list, or properties of list.

Remarks

The GetListItemProperties method is used to examine the collection of properties for a data source. The action of this method depends on the actual type of the list parameter according to the following table:

Parameter type Action
A type that is a list or collection of items. Returns a PropertyDescriptorCollection describing the properties of the item type contained in the list.
A type that is not a list or collection. Returns a PropertyDescriptorCollection describing the properties of the type.
null Returns an empty PropertyDescriptorCollection.

See also

Applies to

GetListItemProperties(Object, PropertyDescriptor[])

Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in a collection property of a data source. Uses the specified PropertyDescriptor array to indicate which properties to examine.

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);
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

Parameters

list
Object

The data source to be examined for property information.

listAccessors
PropertyDescriptor[]

The PropertyDescriptor array describing which properties of the data source to examine. This can be null.

Returns

The PropertyDescriptorCollection describing the properties of the item type contained in a collection property of the data source.

Remarks

The GetListItemProperties method is useful when the data source has properties that are a collection of items and you need to know properties of the item type in the collection, not the properties of the collection type.

See also

Applies to

GetListItemProperties(Object, String, PropertyDescriptor[])

Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs
Source:
ListBindingHelper.cs

Returns the PropertyDescriptorCollection that describes the properties of an item type contained in the specified data member of a data source. Uses the specified PropertyDescriptor array to indicate which properties to examine.

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);
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

Parameters

dataSource
Object

The data source to be examined for property information.

dataMember
String

The optional data member to be examined for property information. This can be null.

listAccessors
PropertyDescriptor[]

The PropertyDescriptor array describing which properties of the data member to examine. This can be null.

Returns

The PropertyDescriptorCollection describing the properties of an item type contained in a collection property of the specified data source.

Exceptions

The specified data member could not be found in the specified data source.

Remarks

The dataMember parameter can be null, in which case the GetListItemProperties method will return property descriptions using the data source and the PropertyDescriptor array.

GetListItemProperties is useful when the data member has properties that are a collection of items and you need to know properties of the item type in the collection, not the properties of the collection type.

See also

Applies to