Metode Api.JetRegisterCallback

Memungkinkan aplikasi mengonfigurasi mesin database untuk mengeluarkan pemberitahuan ke aplikasi untuk peristiwa tertentu. Pemberitahuan ini dikaitkan dengan tabel tertentu dan tetap berlaku hanya sampai instans yang berisi tabel dimatikan menggunakan JetTerm(JET_INSTANCE).

Namespace:Microsoft.Isam.Esent.Interop
Majelis: Microsoft.Isam.Esent.Interop (dalam Microsoft.Isam.Esent.Interop.dll)

Sintaks

'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
)

Parameter

  • konteks
    Jenis: System.IntPtr

    Konteks yang akan diberikan ke panggilan balik.

Lihat juga

Referensi

Kelas Api

Anggota api

Namespace Microsoft.Isam.Esent.Interop