Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ListBindingHelper.GetListName Method

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, 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft