Export (0) Print
Expand All

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)

'Declaration
Private ReadOnly Property ContainsListCollection As Boolean 
	Implements IListSource.ContainsListCollection

Property Value

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

Implements

IListSource.ContainsListCollection

This 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.

This 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, this property returns true. If GetViewNames returns Nothing, which is the default implementation of the DataSourceControl class, the method returns false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft