Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataSourceControl.IListSource.GetList Method

This API 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)

IList IListSource.GetList()

Return Value

Type: System.Collections.IList
An IList of data source controls that can be used as sources of lists of data.

Implements

IListSource.GetList()

The 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 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 null, which is the default implementation of the DataSourceControl class, the ListSourceHelper class also returns null.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft