ICallableStatement.GetNString 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
GetNString(Int32) |
Retrieves the value of the designated |
GetNString(String) |
Retrieves the value of the designated |
GetNString(Int32)
Retrieves the value of the designated NCHAR
,
NVARCHAR
or LONGNVARCHAR
parameter as
a String
in the Java programming language.
[Android.Runtime.Register("getNString", "(I)Ljava/lang/String;", "GetGetNString_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetNString (int parameterIndex);
[<Android.Runtime.Register("getNString", "(I)Ljava/lang/String;", "GetGetNString_IHandler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNString : int -> string
Parameters
- parameterIndex
- Int32
index of the first parameter is 1, the second is 2, ...
Returns
a String
object that maps an
NCHAR
, NVARCHAR
or LONGNVARCHAR
value
- Attributes
Exceptions
if a database error occurs.
Remarks
Retrieves the value of the designated NCHAR
, NVARCHAR
or LONGNVARCHAR
parameter as a String
in the Java programming language.
For the fixed-length type JDBC NCHAR
, the String
object returned has exactly the same value the SQL NCHAR
value had in the database, including any padding added by the database.
Added in 1.6.
Java documentation for java.sql.CallableStatement.getNString(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
GetNString(String)
Retrieves the value of the designated NCHAR
,
NVARCHAR
or LONGNVARCHAR
parameter as
a String
in the Java programming language.
[Android.Runtime.Register("getNString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetNString_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetNString (string? parameterName);
[<Android.Runtime.Register("getNString", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetNString_Ljava_lang_String_Handler:Java.Sql.ICallableStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetNString : string -> string
Parameters
- parameterName
- String
the name of the parameter
Returns
a String
object that maps an
NCHAR
, NVARCHAR
or LONGNVARCHAR
value
- Attributes
Exceptions
if a database error occurs
Remarks
Retrieves the value of the designated NCHAR
, NVARCHAR
or LONGNVARCHAR
parameter as a String
in the Java programming language.
For the fixed-length type JDBC NCHAR
, the String
object returned has exactly the same value the SQL NCHAR
value had in the database, including any padding added by the database.
Added in 1.6.
Java documentation for java.sql.CallableStatement.getNString(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.