IConnectionPoolDataSource.GetPooledConnection(String, String) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to establish a physical database connection that can be used as a pooled connection.
[Android.Runtime.Register("getPooledConnection", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/sql/PooledConnection;", "GetGetPooledConnection_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IConnectionPoolDataSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Javax.Sql.IPooledConnection? GetPooledConnection(string? user, string? password);[<Android.Runtime.Register("getPooledConnection", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/sql/PooledConnection;", "GetGetPooledConnection_Ljava_lang_String_Ljava_lang_String_Handler:Javax.Sql.IConnectionPoolDataSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPooledConnection : string * string -> Javax.Sql.IPooledConnectionParameters
- user
- String
the database user on whose behalf the connection is being made
- password
- String
the user's password
Returns
a PooledConnection object that is a physical
connection to the database that this
ConnectionPoolDataSource object represents
- Attributes
Exceptions
if there is a problem accessing the database.
Remarks
Attempts to establish a physical database connection that can be used as a pooled connection.
Added in 1.4.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.