Api.RetrieveColumn 方法 (JET_SESID、JET_TABLEID、JET_COLUMNID、RetrieveColumnGrbit、JET_RETINFO)

从当前记录中检索单个列值。 记录是与光标当前位置处的索引项关联的记录。 或者,此函数可以从游标复制缓冲区中创建的记录中检索列。 此函数还可以从引用当前记录的索引项检索列数据。 除了检索实际列值外,JetRetrieveColumn 还可用于检索列的大小,然后再检索列数据本身,以便可以适当地调整应用程序缓冲区的大小。

Namespace:Microsoft.Isam.Esent.Interop
装配: Microsoft.Isam.Esent.Interop.dll) 中的 Microsoft.Isam.Esent.Interop (

语法

'Declaration
Public Shared Function RetrieveColumn ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    columnid As JET_COLUMNID, _
    grbit As RetrieveColumnGrbit, _
    retinfo As JET_RETINFO _
) As Byte()
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim columnid As JET_COLUMNID
Dim grbit As RetrieveColumnGrbit
Dim retinfo As JET_RETINFO
Dim returnValue As Byte()

returnValue = Api.RetrieveColumn(sesid, _
    tableid, columnid, grbit, retinfo)
public static byte[] RetrieveColumn(
    JET_SESID sesid,
    JET_TABLEID tableid,
    JET_COLUMNID columnid,
    RetrieveColumnGrbit grbit,
    JET_RETINFO retinfo
)

参数

  • retinfo
    类型: Microsoft.Isam.Esent.Interop.JET_RETINFO

    如果 pretinfo 被赋予为 NULL,则函数的行为类似于 itagSequence 1 和 0 的 ibLongValue (零) 。 这会导致列检索检索多值列的第一个值,并检索偏移量为 0 (零) 的长数据。

返回值

类型:[]
从列检索到的数据。 如果该列为 null,则为 Null。

另请参阅

参考

Api 类

Api 成员

RetrieveColumn 重载

Microsoft.Isam.Esent.Interop 命名空间