Api.TryOpenTable 方法
嘗試開啟資料表。
Namespace:Microsoft.Isam.Esent.Interop
裝配: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Function TryOpenTable ( _
sesid As JET_SESID, _
dbid As JET_DBID, _
tablename As String, _
grbit As OpenTableGrbit, _
<OutAttribute> ByRef tableid As JET_TABLEID _
) As Boolean
'Usage
Dim sesid As JET_SESID
Dim dbid As JET_DBID
Dim tablename As String
Dim grbit As OpenTableGrbit
Dim tableid As JET_TABLEID
Dim returnValue As Boolean
returnValue = Api.TryOpenTable(sesid, _
dbid, tablename, grbit, tableid)
public static bool TryOpenTable(
JET_SESID sesid,
JET_DBID dbid,
string tablename,
OpenTableGrbit grbit,
out JET_TABLEID tableid
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
dbid
類型: Microsoft.Isam.Esent.Interop.JET_DBID要尋找資料表的資料庫。
tablename
類型: System.String資料表的名稱。
grbit
類型: Microsoft.Isam.Esent.Interop.OpenTableGrbit資料表開啟選項。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID傳回開啟的 tableid。
傳回值
類型: System.Boolean
如果資料表已開啟,則為 True,如果資料表不存在,則為 false。
另請參閱
參考
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應