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)
Syntax
'Declaration
Public Shared Sub JetSetSessionContext ( _
sesid As JET_SESID, _
context As IntPtr _
)
'Usage
Dim sesid As JET_SESID
Dim context As IntPtrApi.JetSetSessionContext(sesid, _
context)
public static void JetSetSessionContext(
JET_SESID sesid,
IntPtr context
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to set the context on.
context
Type: System.IntPtrThe context to set.
See also
Reference
Feedback
Submit and view feedback for