'Deklaration
ReadOnly Property Tables As ReadOnlyCollection(Of ITable)
ReadOnlyCollection<ITable> Tables {get;}
property ReadOnlyCollection<ITable^>^ Tables { ReadOnlyCollection<ITable^>^ get(); }
'Deklaration
ReadOnly Property Tables As ReadOnlyCollection(Of ITable)
ReadOnlyCollection<ITable> Tables {get;}
property ReadOnlyCollection<ITable^>^ Tables { ReadOnlyCollection<ITable^>^ get(); }
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
Plattformen: Windows 8.1 bis Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022