ListBindingHelper::GetList Method (Object^)

 

Returns a list associated with the specified data source.

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

public:
static Object^ GetList(
	Object^ list
)

Parameters

list
Type: System::Object^

The data source to examine for its underlying list.

Return Value

Type: System::Object^

An Object representing the underlying list if it exists; otherwise, the original data source specified by list.

If the data source specified by the list parameter implements the IListSource interface, then the GetList method will return an object of type IList that represents the associated list. Otherwise, this method will just return the specified data source since there is no underlying list.

.NET Framework
Available since 2.0
Return to top
Show: