Java.Sql.DriverManager.DeregisterDriver Method
Removes a driver from the DriverManager's registered driver list.

Syntax

[Android.Runtime.Register("deregisterDriver", "(Ljava/sql/Driver;)V", "")]
public static void DeregisterDriver (IDriver driver)

Parameters

driver
the JDBC driver to remove.

Exceptions

TypeReason
Java.Sql.SQLExceptionif there is a problem interfering with accessing the database.

Remarks

Removes a driver from the DriverManager's registered driver list. This will only succeed when the caller's class loader loaded the driver that is to be removed. If the driver was loaded by a different class loader, the removal of the driver fails silently.

If the removal succeeds, the DriverManager will not use this driver in the future when asked to get a Connection.

[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