ListBindingHelper::GetListName Method (Object^, array<PropertyDescriptor^>^)
.NET Framework (current version)
Returns the name of an underlying list, given a data source and optional PropertyDescriptor array.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: static String^ GetListName( Object^ list, array<PropertyDescriptor^>^ listAccessors )
Parameters
- list
-
Type:
System::Object^
The data source to examine for the list name.
- listAccessors
-
Type:
array<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
Available since 2.0
Show: