ListBindingHelper.GetList Method (Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


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