GetListName Method
Collapse the table of content
Expand the table of content

ListBindingHelper.GetListName Method (Object, PropertyDescriptor[])


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

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

public static string GetListName(
	object list,
	PropertyDescriptor[] listAccessors


Type: System.Object

The data source to examine for the list name.

Type: System.ComponentModel.PropertyDescriptor[]

An array of PropertyDescriptor objects to find in the data source. This can be null.

Return Value

Type: System.String

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

If listAccessors is null or empty, the GetListName method returns the name of the data source type.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft