DataRelationInfoCollection Class
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDocumentServer.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDocumentServer.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
- Implements
- ICollection<Data
Relation , IEnumerable<DataInfo> Relation , IEnumerableInfo>
Description
An instance of the DataRelationInfoCollection class contains all data relations in a data source represented through objects of the type DataRelationInfo. The DataRelationInfoCollection class implements the interface ICollection<DataRelationInfo> and therefore also IEnumerable<DataRelationInfo>. This collection class is meant to be read only. For this reason all ICollection members which would cause changes to the collection content (e. g. Add(), Clear() or Remove()) throw a NotSupportedException.
Syntax
public sealed class DataRelationInfoCollection : ICollection<DataRelationInfo>, IEnumerable<DataRelationInfo>, IEnumerablePublic NotInheritable Class DataRelationInfoCollection
Implements ICollection(Of DataRelationInfo), IEnumerable(Of DataRelationInfo), IEnumerableExamples
The following example includes the item value from a Data Relation Info Collection object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Item: {dataRelationInfoCollection[1]}");
Console.WriteLine("Data Relation Info Collection is ready for use.");Console.WriteLine($"Item: {dataRelationInfoCollection.Item(1)}")
Console.WriteLine("Data Relation Info Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Count | Gets the number of elements contained in the collection. |
| IsReadOnly | Gets a value indicating whether the collection is read only. Always returns true. |
| Item | Gets the DataRelationInfo instance with the specified 0-based index from the collection. In C# this property is the indexer for the DataRelationInfoCollection class. |
Methods
| Method | Description |
|---|---|
| Add | Not described in the reference. public void Add(DataRelationInfo item); |
| Clear | Not described in the reference. public void Clear(); |
| Contains | Not described in the reference. public bool Contains(DataRelationInfo item); |
| CopyTo | Copies the elements of the collection to an array, starting at a particular index. |
| GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
| Remove | Not described in the reference. public bool Remove(DataRelationInfo item); |