Dil

CursorWrapper.GetString(Int32) Method

Definition

Returns the value of the requested column as a String.

[Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "GetGetString_IHandler")]
public virtual string? GetString(int columnIndex);
[<Android.Runtime.Register("getString", "(I)Ljava/lang/String;", "GetGetString_IHandler")>]
abstract member GetString : int -> string
override this.GetString : int -> string

Parameters

columnIndex
Int32

the zero-based index of the target column.

Returns

the value of that column as a String.

Implements

Attributes

Remarks

Returns the value of the requested column as a String.

The result and whether this method throws an exception when the column value is null or the column type is not a string type is implementation-defined.

Android reference for android.database.CursorWrapper.getString.

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