IDriver.AcceptsURL(String) Method

Definition

Retrieves whether the driver thinks that it can open a connection to the given URL.

[Android.Runtime.Register("acceptsURL", "(Ljava/lang/String;)Z", "GetAcceptsURL_Ljava_lang_String_Handler:Java.Sql.IDriverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool AcceptsURL (string? url);
[<Android.Runtime.Register("acceptsURL", "(Ljava/lang/String;)Z", "GetAcceptsURL_Ljava_lang_String_Handler:Java.Sql.IDriverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member AcceptsURL : string -> bool

Parameters

url
String

the URL of the database

Returns

true if this driver understands the given URL; false otherwise

Attributes

Exceptions

if a database error occurs.

Remarks

Retrieves whether the driver thinks that it can open a connection to the given URL. Typically drivers will return true if they understand the subprotocol specified in the URL and false if they do not.

Java documentation for java.sql.Driver.acceptsURL(java.lang.String).

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