OpenConnectionToAll Method
- Last UpdatedAug 21, 2026
- 1 minute read
Use the OpenConnectionToAll() method to create an asynchronous connection to the Historian Server.
'Declaration
Public Function OpenConnectionToAll( _
ByVal historianConnectionInfo As HistorianConnectionArgs, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As MultiHistorianAccess
Dim historianConnectionInfo As HistorianConnectionArgs
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.OpenConnectionToAll(historianConnectionInfo, error)
public bool OpenConnectionToAll(
HistorianConnectionArgs historianConnectionInfo,
out HistorianAccessError error
)
public:
bool OpenConnectionToAll(
HistorianConnectionArgs^ historianConnectionInfo,
[Out] HistorianAccessError^ error
)
Parameters
- historianConnectionInfo
- An object of HistorianConnectionArgs that contains server connection details such as the server name and the logon credentials for the computer hosting the server.
- error
- The object of HistorianAccessError, which contains any error information.
Return Value
Returns True if successful; otherwise, returns False.
To initiate an asynchronous server connection, the OpenConnectionToAll() method of the HistorianAccess object must be called and a HistorianConnectionArgs object must be provided with connection arguments.
The OpenConnectionToAll() method opens a connection to Historian Server version 11.0 or later.
It is always recommended that for every OpenConnectionToAll() method used, the subsequent CloseConnection() method call is made.