Api.RetrieveColumnSize 方法 (JET_SESID、JET_TABLEID、JET_COLUMNID、Int32、RetrieveColumnGrbit)
從目前記錄擷取單一資料行值的大小。 記錄是與游標目前位置之索引項目目相關聯的記錄。 或者,此函式可以從資料指標複製緩衝區中建立的記錄擷取資料行。 此函式也可以從參考目前記錄的索引項目目擷取資料行資料。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Function RetrieveColumnSize ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
columnid As JET_COLUMNID, _
itagSequence As Integer, _
grbit As RetrieveColumnGrbit _
) As Nullable(Of Integer)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim columnid As JET_COLUMNID
Dim itagSequence As Integer
Dim grbit As RetrieveColumnGrbit
Dim returnValue As Nullable(Of Integer)
returnValue = Api.RetrieveColumnSize(sesid, _
tableid, columnid, itagSequence, _
grbit)
public static Nullable<int> RetrieveColumnSize(
JET_SESID sesid,
JET_TABLEID tableid,
JET_COLUMNID columnid,
int itagSequence,
RetrieveColumnGrbit grbit
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID要從中擷取資料行的資料指標。
columnid
類型: Microsoft.Isam.Esent.Interop.JET_COLUMNID要擷取的 columnid。
itagSequence
類型: System.Int32多重值資料行中的數值序號。 值的陣列是以單一為基礎。 第一個值是序列 1,而不是 0。 如果記錄資料行只有一個值,則應該以 itagSequence 的形式傳遞 1。
grbit
類型: Microsoft.Isam.Esent.Interop.RetrieveColumnGrbit擷取資料行選項。
傳回值
類型:System.Nullable<Int32>
資料行的大小。 如果資料行為 Null,則為 0。