'Deklaration
ReadOnly Property Relations As ReadOnlyCollection(Of ITableRelation)
ReadOnlyCollection<ITableRelation> Relations {get;}
property ReadOnlyCollection<ITableRelation^>^ Relations { ReadOnlyCollection<ITableRelation^>^ get(); }
'Deklaration
ReadOnly Property Relations As ReadOnlyCollection(Of ITableRelation)
ReadOnlyCollection<ITableRelation> Relations {get;}
property ReadOnlyCollection<ITableRelation^>^ Relations { ReadOnlyCollection<ITableRelation^>^ get(); }
List<ITableRelation> _relations; ReadOnlyCollection<ITableRelation> Relations { get { if (_relations == null) { _relations = new List<ITableRelation>(); foreach (DataRelation dr in _dataViewManager.DataSet.Relations) { _relations.Add(new DataRelationWrapper(dr)); } } return _relations.AsReadOnly(); } }
Private _relations As List(Of ITableRelation) Readonly Property Relations() As ReadOnlyCollection(Of ITableRelation) Get If _relations = Nothing Then _relations = New List(Of ITableRelation)() For Each dr As DataRelation In _dataViewManager.DataSet.Relations _relations.Add(New DataRelationWrapper(dr)) Next End If Return _relations.AsReadOnly() End Get End Property
Plattformen: Windows 8.1 bis Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022