Api.JetSetSessionContext method

Associates a session with the current thread using the given context handle. This association overrides the default engine requirement that a transaction for a given session must occur entirely on the same thread. Use JetResetSessionContext(JET_SESID) to remove the association.

Namespace:  Microsoft.Isam.Esent.Interop
Assembly:  Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)


Public Shared Sub JetSetSessionContext ( _
    sesid As JET_SESID, _
    context As IntPtr _
Dim sesid As JET_SESID
Dim context As IntPtrApi.JetSetSessionContext(sesid, _
public static void JetSetSessionContext(
    JET_SESID sesid,
    IntPtr context


See also


Api class

Api members

Microsoft.Isam.Esent.Interop namespace