Język

IDriverExtensions.ConnectAsync(IDriver, String, Properties) Method

Definition

Runs the driver's Connect method on a thread-pool thread to attempt a database connection.

public static System.Threading.Tasks.Task<Java.Sql.IConnection?> ConnectAsync(this Java.Sql.IDriver self, string? url, Java.Util.Properties? info);
static member ConnectAsync : Java.Sql.IDriver * string * Java.Util.Properties -> System.Threading.Tasks.Task<Java.Sql.IConnection>

Parameters

self
IDriver

The driver that attempts the connection.

url
String

The URL of the database to connect to.

info
Properties

The connection properties, usually including user and password values.

Returns

A task whose result is the connection returned by the driver, or null if the driver cannot handle the URL.

Remarks

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.

Applies to