IListSource.ContainsListCollection Property

Definition

Gets a value indicating whether the collection is a collection of IList objects.

C#
public bool ContainsListCollection { get; }

Property Value

true if the collection is a collection of IList objects; otherwise, false.

Examples

The following code example demonstrates how to implement the IListSource interface. A component named EmployeeListSource indicates that it does not contain an IList for data binding by returning false from the ContainsListCollection method. For a full code listing, see How to: Implement the IListSource Interface.

C#
bool IListSource.ContainsListCollection
{
    get { return false; }
}

Remarks

Using this property in DataSet returns true because the DataSet class contains a collection of collections. Using this property in DataTable returns false because the DataTable class contains a collection of objects.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also