IListSource.ContainsListCollection Propriedade

Definição

Obtém um valor que indica se a coleção é uma coleção de objetos IList.Gets a value indicating whether the collection is a collection of IList objects.

public:
 property bool ContainsListCollection { bool get(); };
public bool ContainsListCollection { get; }
member this.ContainsListCollection : bool
Public ReadOnly Property ContainsListCollection As Boolean

Valor da propriedade

Boolean

true se a coleção for uma coleção de objetos IList; caso contrário, false.true if the collection is a collection of IList objects; otherwise, false.

Exemplos

O exemplo de código a seguir demonstra como implementar a IListSource interface.The following code example demonstrates how to implement the IListSource interface. Um componente chamado EmployeeListSource indica que ele não contém um IList para vinculação de dados retornando false do ContainsListCollection método.A component named EmployeeListSource indicates that it does not contain an IList for data binding by returning false from the ContainsListCollection method. Para obter uma listagem de código completa, consulte como implementar a interface IListSource.For a full code listing, see How to: Implement the IListSource Interface.

bool IListSource.ContainsListCollection
{
    get { return false; }
}
Public ReadOnly Property ContainsListCollection() As Boolean Implements System.ComponentModel.IListSource.ContainsListCollection
    Get
        Return False
    End Get
End Property

Comentários

Usando essa propriedade em DataSet retornos true porque a DataSet classe contém uma coleção de coleções.Using this property in DataSet returns true because the DataSet class contains a collection of collections. Usando essa propriedade em DataTable retornos false porque a DataTable classe contém uma coleção de objetos.Using this property in DataTable returns false because the DataTable class contains a collection of objects.

Aplica-se a

Confira também