ICallableStatement.GetString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetString(Int32) |
Retrieves the value of the designated JDBC <code>CHAR</code>, <code>VARCHAR</code>, or <code>LONGVARCHAR</code> parameter as a <code>String</code> in the Java programming language. |
| GetString(String) |
Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>, or <code>LONGVARCHAR</code> parameter as a <code>String</code> in the Java programming language. |
GetString(Int32)
Retrieves the value of the designated JDBC <code>CHAR</code>, <code>VARCHAR</code>, or <code>LONGVARCHAR</code> parameter as a <code>String</code> in the Java programming language.
[Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "GetGetString_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetString (int parameterIndex);
[<Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "GetGetString_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetString : int -> string
Parameters
- parameterIndex
- Int32
the first parameter is 1, the second is 2, and so on
Returns
the parameter value. If the value is SQL <code>NULL</code>, the result is <code>null</code>.
- Attributes
Exceptions
if there is a problem accessing the database.
Remarks
Java documentation for java.sql.CallableStatement.getString(int).
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
GetString(String)
Retrieves the value of a JDBC <code>CHAR</code>, <code>VARCHAR</code>, or <code>LONGVARCHAR</code> parameter as a <code>String</code> in the Java programming language.
[Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetString (string? parameterName);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetString : string -> string
Parameters
- parameterName
- String
the name of the parameter
Returns
the parameter value. If the value is SQL <code>NULL</code>, the result is <code>null</code>.
- Attributes
Exceptions
if there is a problem accessing the database.
Remarks
Java documentation for java.sql.CallableStatement.getString(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.