TX Text Control .NET Server

ConnectionStringChanged Event

Event|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

Is fired when the contents of the ConnectionString property change.

Syntax

public event EventHandler ConnectionStringChanged;

Examples

The following example records useful context when connection string changed occurs.

dataSourceManager.ConnectionStringChanged += (sender, e) =>
{
    Console.WriteLine($"Connection String Changed at {DateTime.Now:u}");
};