Disconnecting from the Historian
- Last UpdatedAug 21, 2026
- 1 minute read
After the connection to the historian is no longer needed, it should be closed by using the CloseConnection() method of the HistorianAccess class.
Example
HistorianAccessError error;
if (!historian.CloseConnection(out error))
Console.WriteLine("Failed to close historian connection: {0}", error.ErrorDescription);
The CloseConnection() method releases the allocated resources and stops the store-and-forward engine child process.