Aracılığıyla paylaş


DriverManager.RegisterDriver(IDriver) Method

Definition

Registers the given driver with the DriverManager.

[Android.Runtime.Register("registerDriver", "(Ljava/sql/Driver;)V", "")]
public static void RegisterDriver (Java.Sql.IDriver? driver);
[<Android.Runtime.Register("registerDriver", "(Ljava/sql/Driver;)V", "")>]
static member RegisterDriver : Java.Sql.IDriver -> unit

Parameters

driver
IDriver

the new JDBC Driver that is to be registered with the DriverManager

Attributes

Exceptions

if a database access error occurs.

Remarks

Registers the given driver with the DriverManager. A newly-loaded driver class should call the method registerDriver to make itself known to the DriverManager.

Java documentation for java.sql.DriverManager.registerDriver(java.sql.Driver).

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