LoadObjects Method
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Loads a collection implementing the interface IEnumerable as a data source and deduces the data tables, column names and data relations from the public properties and used classes of the first contained object using .NET reflection or, in case of the first contained object being a Dictionary with string keys, from the key names and value types.
Syntax
public void LoadObjects(IEnumerable objects);Public Sub LoadObjects(objects As IEnumerable)Parameters
| Parameter | Description |
|---|---|
| objects | A collection implementing interface |
Examples
The following example uses Load Objects in a focused Data Source Manager workflow. The created object is then available to the surrounding document workflow.
dataSourceManager.LoadObjects(new UserDefinedPropertyDictionary());
Console.WriteLine("Data Source Manager is ready for use.");dataSourceManager.LoadObjects(New UserDefinedPropertyDictionary())
Console.WriteLine("Data Source Manager is ready for use.")