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
)

Parameters

list
Type: System.Object

The data source to examine for the list name.

listAccessors
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, or the 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
Show: