Java.Sql.DriverManager.GetConnection Method
Attempts to establish a connection to the given database URL.

Syntax

[Android.Runtime.Register("getConnection", "(Ljava/lang/String;)Ljava/sql/Connection;", "")]
public static IConnection GetConnection (string url)

Parameters

url
a URL string representing the database target to connect with.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Sql.SQLExceptionif there is an error while attempting to connect to the database identified by the URL.

Remarks

Attempts to establish a connection to the given database URL.

[Android Documentation]

Requirements

Namespace: Java.Sql
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1