This documentation is archived and is not being maintained.

DataSourceControl.IListSource.ContainsListCollection Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Indicates whether the data source control is associated with one or more lists of data.

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

JScript does not support explicit interface implementations.

Property Value

Type: System.Boolean
true if the DataSourceControl is associated with one or more DataSourceView objects; otherwise, false.



The ContainsListCollection property is used to determine whether the current object can be used as a source of one or more lists 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 property returns true.

The ContainsListCollection property calls the static ListSourceHelper.ContainsListCollection method to determine whether the current data source control can be used as a source of data. The ListSourceHelper class determines whether the GetViewNames method returns a valid collection of view names. If it does, the ContainsListCollection property returns true. If GetViewNames returns a null reference (Nothing in Visual Basic), which is the default implementation of the DataSourceControl class, the method returns false.

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