LoadAssembly Method
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Loads an assembly file as a data source. Automatically deduces table and column names as well as data relations from the public properties of all public classes found in the assembly.
Syntax
public void LoadAssembly(string fileName);Public Sub LoadAssembly(fileName As String)Parameters
| Parameter | Description |
|---|---|
| fileName | The assembly file name. |
Examples
The following example uses Load Assembly in a focused Data Source Manager workflow. The created object is then available to the surrounding document workflow.
dataSourceManager.LoadAssembly("document.docx");
Console.WriteLine("Data Source Manager is ready for use.");dataSourceManager.LoadAssembly("document.docx")
Console.WriteLine("Data Source Manager is ready for use.")