DataSourceControl.System.ComponentModel.IListSource.ContainsListCollection Property
Assembly: System.Web (in system.web.dll)
private: virtual property bool System.ComponentModel.IListSource.ContainsListCollection { bool get () sealed = IListSource::ContainsListCollection::get; }
Not applicable.
Property Value
true if the DataSourceControl is associated with one or more DataSourceView objects; otherwise, false.The System.ComponentModel.IListSource.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 System.ComponentModel.IListSource.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 System.ComponentModel.IListSource.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.