|   | PIConnectionPoolGetPooledConnection Method | 
        
        
            Gets a connection from the pool or creates a new one if all current connections are being used at peak access.
            
        
        Namespace: PIAdaptersAssembly: PIAdapters (in PIAdapters.dll) Version: 2.4.257-beta
 Syntax
SyntaxPublic Function GetPooledConnection ( 
	serverName As String,
	Optional userName As String = Nothing,
	Optional password As String = Nothing,
	Optional connectTimeout As Integer = 30000
) As PIConnection
member GetPooledConnection : 
        serverName : string * 
        ?userName : string * 
        ?password : string * 
        ?connectTimeout : int 
(* Defaults:
        let _userName = defaultArg userName null
        let _password = defaultArg password null
        let _connectTimeout = defaultArg connectTimeout 30000
*)
-> PIConnection function GetPooledConnection(serverName, userName, password, connectTimeout);
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
PIConnectionA 
PIConnection from the pool.
 Exceptions
Exceptions See Also
See Also