Click or drag to resize
Grid Solutions Framework

PIConnectionPoolGetPooledConnection Method

Gets a connection from the pool or creates a new one if all current connections are being used at peak access.

Namespace: PIAdapters
Assembly: PIAdapters (in PIAdapters.dll) Version: 2.4.218-beta
Syntax
public PIConnection GetPooledConnection(
	string serverName,
	string userName = null,
	string password = null,
	int connectTimeout = 30000
)
View Source

Parameters

serverName  String
Name of the PI server for the adapter's PI connection.
userName  String  (Optional)
Name of the PI user ID for the adapter's PI connection.
password  String  (Optional)
Password used for the adapter's PI connection.
connectTimeout  Int32  (Optional)
Timeout interval (in milliseconds) for the adapter's connection.

Return Value

PIConnection
A PIConnection from the pool.
Exceptions
ExceptionCondition
InvalidOperationExceptionFailed to get a pooled PI connection.
See Also