TX Text Control .NET Server

ConnectionString Property

Property|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.DataSources
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Gets the connection string of the connection selected with the DatabaseConnectionDialog. If no data connection was selected, this property returns an empty string.

Syntax

public string ConnectionString { get; }

Examples

The following example includes the connection string value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Connection String: {dataSourceManager.ConnectionString}");
Console.WriteLine("Data Source Manager is ready for use.");

Limitations

Read only.