LoadSingleObject Method
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Loads a single object which is either a Dictionary with string keys or an object of an arbitrary type as a data source. The data tables, column names are deduced either from the key names or the public property names and types using .NET reflection.
Syntax
public void LoadSingleObject(object obj);Public Sub LoadSingleObject(obj As Object)Parameters
| Parameter | Description |
|---|---|
| obj | A single object which is either a Dictionary with string keys or an object of an arbitrary type as a data source. |
Examples
The following example uses Load Single Object in a focused Data Source Manager workflow. The created object is then available to the surrounding document workflow.
dataSourceManager.LoadSingleObject("Approved");
Console.WriteLine("Data Source Manager is ready for use.");dataSourceManager.LoadSingleObject("Approved")
Console.WriteLine("Data Source Manager is ready for use.")