combit List & Label 25 - .NET Online Web Help
Tables Property (IDataProvider)
Example 


combit.ListLabel25.DataProviders Namespace > IDataProvider Interface : Tables Property
This property is queried to receive all available tables of the data provider.
Syntax
'Declaration
 
ReadOnly Property Tables As ReadOnlyCollection(Of ITable)
Example
List<ITable> _tables;
ReadOnlyCollection<ITable> IDataProvider.Tables
{
    get
    {
        if (_tables == null)
        {
            _tables = new List<ITable>();
            foreach (DataTable dt in _dataViewManager.DataSet.Tables)
            {
                _tables.Add(new DataViewWrapper(_dataViewManager.CreateDataView(dt)));
            }
        }
        return _tables.AsReadOnly();
    }
}
Private _tables As List(Of ITable)
Readonly Property Tables() As ReadOnlyCollection(Of ITable) Implements IDataProvider.Tables
    Get
        If _tables = Nothing Then
            _tables = New List(Of ITable)()
            For Each dt As DataTable In _dataViewManager.DataSet.Tables
                _tables.Add(New DataViewWrapper(_dataViewManager.CreateDataView(dt)))
            Next
        End If
        Return _tables.AsReadOnly()
    End Get
End Property
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

IDataProvider Interface
IDataProvider Members