Metodo Api.JetRegisterCallback
Consente all'applicazione di configurare il motore di database per inviare notifiche all'applicazione per eventi specifici. Queste notifiche sono associate a una tabella specifica e rimangono effettive solo finché l'istanza contenente la tabella viene arrestata usando JetTerm(JET_INSTANCE).
Spazio dei nomi:Microsoft.Isam.Esent.Interop
Assemblea: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Sintassi
'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
)
Parametri
sesid
Tipo: Microsoft.Isam.Esent.Interop.JET_SESIDSessione da usare.
tableid
Tipo: Microsoft.Isam.Esent.Interop.JET_TABLEIDCursore aperto sulla tabella in cui deve essere registrato il callback.
cbtyp
Tipo: Microsoft.Isam.Esent.Interop.JET_cbtypMotivi di callback per cui l'applicazione desidera ricevere notifiche.
callback
Tipo: Microsoft.Isam.Esent.Interop.JET_CALLBACKFunzione di callback.
contesto
Tipo: System.IntPtrContesto che verrà assegnato al callback.
callbackId
Tipo: Microsoft.Isam.Esent.Interop.JET_HANDLEHandle che può essere usato in seguito per annullare la registrazione della funzione di callback specificata usando JetUnregisterCallback(JET_SESID, JET_TABLEID, JET_cbtyp, JET_HANDLE).
Vedi anche
Riferimento
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: nel corso del 2024 verranno dismessi i problemi di GitHub come meccanismo di feedback per il contenuto e verranno sostituiti con un nuovo sistema di feedback. Per altre informazioni, vedere:Invia e visualizza il feedback per