Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Historian SDK

Disconnecting from the Historian

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.