Api.JetRegisterCallback method
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for