Allows the application to configure the database engine to issue notifications to the application for specific events. These notifications are associated with a specific table and remain in effect only until the instance containing the table is shut down using JetTerm(JET_INSTANCE).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'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
)
Parameters
-
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
-
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDA cursor opened on the table that the callback should be registered on.
-
cbtyp
Type: Microsoft.Isam.Esent.Interop.JET_cbtypThe callback reasons for which the application wishes to receive notifications.
-
callback
Type: Microsoft.Isam.Esent.Interop.JET_CALLBACKThe callback function.
-
context
Type: System.IntPtrA context that will be given to the callback.
-
callbackId
Type: Microsoft.Isam.Esent.Interop.JET_HANDLEA handle that can later be used to cancel the registration of the given callback function using JetUnregisterCallback(JET_SESID, JET_TABLEID, JET_cbtyp, JET_HANDLE).
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
