CursorWindow.GetBlob(Int32, Int32) 方法

定义

获取指定行和列索引处作为字节数组的字段的值。

[Android.Runtime.Register("getBlob", "(II)[B", "GetGetBlob_IIHandler")]
public virtual byte[]? GetBlob(int row, int column);
[<Android.Runtime.Register("getBlob", "(II)[B", "GetGetBlob_IIHandler")>]
abstract member GetBlob : int * int -> byte[]
override this.GetBlob : int * int -> byte[]

参数

row
Int32

从零开始的行索引。

column
Int32

从零开始的列索引。

返回

Byte[]

字段作为字节数组的值。

属性

注解

获取指定行和列索引处作为字节数组的字段的值。

结果按如下方式确定:<ul<>li>如果字段的类型,Cursor#FIELD_TYPE_NULL则结果为 null。</li li>><如果字段的类型Cursor#FIELD_TYPE_BLOB,则结果为 blob 值。</li li>><如果字段的类型Cursor#FIELD_TYPE_STRING,则结果为构成字符串值内部表示形式的字节数组。</li li>><如果字段的类型Cursor#FIELD_TYPE_INTEGER为或 Cursor#FIELD_TYPE_FLOAT,则引发 a。<SQLiteException/li></ul>

Java文档android.database.CursorWindow.getBlob(int, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于