Compartir a través de


CursorWindow.GetString(Int32, Int32) Method

Definition

Gets the value of the field at the specified row and column index as a string.

[Android.Runtime.Register("getString", "(II)Ljava/lang/String;", "GetGetString_IIHandler")]
public virtual string? GetString (int row, int column);
[<Android.Runtime.Register("getString", "(II)Ljava/lang/String;", "GetGetString_IIHandler")>]
abstract member GetString : int * int -> string
override this.GetString : int * int -> string

Parameters

row
Int32

The zero-based row index.

column
Int32

The zero-based column index.

Returns

The value of the field as a string.

Attributes

Remarks

Gets the value of the field at the specified row and column index as a string.

The result is determined as follows: <ul> <li>If the field is of type Cursor#FIELD_TYPE_NULL, then the result is null.</li> <li>If the field is of type Cursor#FIELD_TYPE_STRING, then the result is the string value.</li> <li>If the field is of type Cursor#FIELD_TYPE_INTEGER, then the result is a string representation of the integer in decimal, obtained by formatting the value with the printf family of functions using format specifier %lld.</li> <li>If the field is of type Cursor#FIELD_TYPE_FLOAT, then the result is a string representation of the floating-point value in decimal, obtained by formatting the value with the printf family of functions using format specifier %g.</li> <li>If the field is of type Cursor#FIELD_TYPE_BLOB, then a SQLiteException is thrown.</li> </ul>

Java documentation for android.database.CursorWindow.getString(int, 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