Share via


Api.JetGetCurrentIndex 方法

Ddeterminmin the current index of a given cursor. 此名稱也可用來稍後使用 JetSetCurrentIndex (JET_SESID、JET_TABLEID、String) 重新選取該索引作為目前索引。 它也可以用來使用 JetGetTableIndexInfo 來探索該索引的屬性。

Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

語法

'Declaration
Public Shared Sub JetGetCurrentIndex ( _
    sesid As JET_SESID, _
    tableid As JET_TABLEID, _
    <OutAttribute> ByRef indexName As String, _
    maxNameLength As Integer _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim indexName As String
Dim maxNameLength As IntegerApi.JetGetCurrentIndex(sesid, tableid, _
    indexName, maxNameLength)
public static void JetGetCurrentIndex(
    JET_SESID sesid,
    JET_TABLEID tableid,
    out string indexName,
    int maxNameLength
)

參數

  • maxNameLength
    類型: System.Int32

    索引名稱的最大長度。 索引名稱不超過 NameMost 字元。

另請參閱

參考

Api 類別

Api 成員

Microsoft.Isam.Esent.Interop 命名空間