System.Windows.Forms.ListBindingHelper.GetListName Method

Returns the name of an underlying list, given a data source and optional System.ComponentModel.PropertyDescriptor array.

Syntax

public static string GetListName (object list, System.ComponentModel.PropertyDescriptor[] listAccessors)

Parameters

list
The data source to examine for the list name.
listAccessors
An array of System.ComponentModel.PropertyDescriptor objects to find in the data source. This can be null.

Returns

The name of the list in the data source, as described by listAccessors, or the name of the data source type.

Remarks

If listAccessors is null or empty, the ListBindingHelper.GetListName(object, System.ComponentModel.PropertyDescriptor[]) method returns the name of the data source type.

Requirements

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