Api.JetRegisterCallback 方法
允許應用程式設定資料庫引擎,以針對特定事件向應用程式發出通知。 這些通知會與特定資料表相關聯,且只有在包含資料表的實例使用 JetTerm (JET_INSTANCE) 關閉為止。
Namespace:Microsoft.Isam.Esent.Interop
裝配: microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
語法
'Declaration
Public Shared Sub JetRegisterCallback ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
cbtyp As JET_cbtyp, _
callback As JET_CALLBACK, _
context As IntPtr, _
<OutAttribute> ByRef callbackId As JET_HANDLE _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim cbtyp As JET_cbtyp
Dim callback As JET_CALLBACK
Dim context As IntPtr
Dim callbackId As JET_HANDLEApi.JetRegisterCallback(sesid, _
tableid, cbtyp, callback, context, _
callbackId)
public static void JetRegisterCallback(
JET_SESID sesid,
JET_TABLEID tableid,
JET_cbtyp cbtyp,
JET_CALLBACK callback,
IntPtr context,
out JET_HANDLE callbackId
)
參數
sesid
類型: Microsoft.Isam.Esent.Interop.JET_SESID要使用的會話。
tableid
類型: Microsoft.Isam.Esent.Interop.JET_TABLEID在資料表上開啟的資料指標,應該註冊回呼。
cbtyp
類型: Microsoft.Isam.Esent.Interop.JET_cbtyp應用程式想要接收通知的回呼原因。
回撥
類型: Microsoft.Isam.Esent.Interop.JET_CALLBACK回呼函式。
內容
類型: System.IntPtr將提供給回呼的內容。
callbackId
類型: Microsoft.Isam.Esent.Interop.JET_HANDLE稍後可以使用 JetUnregisterCallback (JET_SESID、JET_TABLEID、JET_cbtyp JET_HANDLE) 來取消指定回呼函式註冊的控制碼。
另請參閱
參考
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應