System.Windows.Forms.ListBindingHelper.GetListItemProperties Method

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

Syntax

public static System.ComponentModel.PropertyDescriptorCollection GetListItemProperties (object dataSource, string dataMember, System.ComponentModel.PropertyDescriptor[] listAccessors)

Parameters

dataSource
The data source to be examined for property information.
dataMember
The optional data member to be examined for property information. This can be null.
listAccessors
The System.ComponentModel.PropertyDescriptor array describing which properties of the data member to examine. This can be null.

Returns

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

Remarks

The dataMember parameter can be null, in which case the ListBindingHelper.GetListItemProperties(object, string, System.ComponentModel.PropertyDescriptor[]) method will return property descriptions using the data source and the System.ComponentModel.PropertyDescriptor array.

ListBindingHelper.GetListItemProperties(object, System.ComponentModel.PropertyDescriptor[]) 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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0