# DataTableInfoCollection Class

> An instance of the DataTableInfoCollection class contains all data tables in a data source represented through objects of the type DataTableInfo. The DataTableInfoCollection class implements the interface ICollection<DocumentServer.DataSources.DataTableInfo> and therefore also IEnumerable<DocumentServer.DataSources.DataTableInfo>. 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Implements:** `System.Collections.Generic.ICollection<TXTextControl.DocumentServer.DataSources.DataTableInfo>`, `System.Collections.Generic.IEnumerable<TXTextControl.DocumentServer.DataSources.DataTableInfo>`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.DataSources > DataTableInfoCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/#members)

---

## In This Section

- [DataTableInfoCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [DataTableInfoCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/count-property/llms.txt): Gets the number of elements contained in the collection.
- [DataTableInfoCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/getenumerator-method/llms.txt): Returns an enumerator that can be used to iterate through the collection.
- [DataTableInfoCollection.IsReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/isreadonly-property/llms.txt): Gets a value indicating whether the collection is read only. Always returns true.
- [DataTableInfoCollection.Item Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/item-method/llms.txt): Gets a DataTableInfo instance from the collection. In C# this property is the indexer for the DataTableInfoCollection class.

---

## Nearby

- **Previous:** [DataTableInfo.TableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfo/tablename-property/llms.txt)
- **Next:** [DataTableInfoCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datatableinfocollection/copyto-method/llms.txt)
