Compartir a través de


IConnection.GetClientInfo(String) Method

Definition

Returns the value of the client info property specified by name.

[Android.Runtime.Register("getClientInfo", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetClientInfo_Ljava_lang_String_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetClientInfo (string? name);
[<Android.Runtime.Register("getClientInfo", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetClientInfo_Ljava_lang_String_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetClientInfo : string -> string

Parameters

name
String

The name of the client info property to retrieve <p>

Returns

The value of the client info property specified <p>

Attributes

Exceptions

if this connection is closed, or there's a problem getting the property.

Remarks

Returns the value of the client info property specified by name. This method may return null if the specified client info property has not been set and does not have a default value. This method will also return null if the specified client info property name is not supported by the driver.

Applications may use the DatabaseMetaData.getClientInfoProperties method to determine the client info properties supported by the driver.

Added in 1.6 <p>.

Java documentation for java.sql.Connection.getClientInfo(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