System.Windows.Forms.ListBindingHelper.GetList Method

Returns a list associated with the specified data source.

Syntax

public static object GetList (object list)

Parameters

list
The data source to examine for its underlying list.

Returns

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

Remarks

If the data source specified by the list parameter implements the System.ComponentModel.IListSource interface, then the ListBindingHelper.GetList(object) 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.

Requirements

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