Bagikan melalui


IDriver.GetPropertyInfo(String, Properties) Method

Definition

Gets information about the possible properties for this driver.

[Android.Runtime.Register("getPropertyInfo", "(Ljava/lang/String;Ljava/util/Properties;)[Ljava/sql/DriverPropertyInfo;", "GetGetPropertyInfo_Ljava_lang_String_Ljava_util_Properties_Handler:Java.Sql.IDriverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.DriverPropertyInfo[]? GetPropertyInfo (string? url, Java.Util.Properties? info);
[<Android.Runtime.Register("getPropertyInfo", "(Ljava/lang/String;Ljava/util/Properties;)[Ljava/sql/DriverPropertyInfo;", "GetGetPropertyInfo_Ljava_lang_String_Ljava_util_Properties_Handler:Java.Sql.IDriverInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPropertyInfo : string * Java.Util.Properties -> Java.Sql.DriverPropertyInfo[]

Parameters

url
String

the URL of the database to which to connect

info
Properties

a proposed list of tag/value pairs that will be sent on connect open

Returns

an array of DriverPropertyInfo objects describing possible properties. This array may be an empty array if no properties are required.

Attributes

Exceptions

if a database error occurs.

Remarks

Gets information about the possible properties for this driver.

The getPropertyInfo method is intended to allow a generic GUI tool to discover what properties it should prompt a human for in order to get enough information to connect to a database. Note that depending on the values the human has supplied so far, additional values may become necessary, so it may be necessary to iterate though several calls to the getPropertyInfo method.

Java documentation for java.sql.Driver.getPropertyInfo(java.lang.String, java.util.Properties).

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