DataSourceControl.System.ComponentModel.IListSource.GetList Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets a list of data source controls that can be used as sources of lists of data.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

private:
virtual IList^ System.ComponentModel.IListSource.GetList () sealed = IListSource::GetList
Not applicable.

Return Value

An IList of data source controls that can be used as sources of lists of data.

The System.ComponentModel.IListSource.GetList method is used to retrieve a set of objects that can be used as sources of data. Data source controls encapsulate their lists of data as DataSourceView objects; therefore, when associated with one or more DataSourceView objects, a DataSourceControl control represents a list source object and the method returns an IList collection of one element, the DataSourceControl itself.

The System.ComponentModel.IListSource.GetList method calls the static ListSourceHelper.GetList method to retrieve an IList collection of objects that can be used as sources of data. The ListSourceHelper class determines whether GetViewNames returns a valid collection of view names. If it does, the ListSourceHelper class returns an IList collection of one element, the DataSourceControl control. If GetViewNames returns a null reference (Nothing in Visual Basic), which is the default implementation of the DataSourceControl class, the ListSourceHelper class also returns a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: