Share via


Api.JetSetSessionContext メソッド

指定されたコンテキスト ハンドルを使用して、セッションを現在のスレッドに関連付けます。 この関連付けにより、特定のセッションのトランザクションが完全に同じスレッドで実行される必要がある既定のエンジン要件がオーバーライドされます。 JetResetSessionContext(JET_SESID) を使用して関連付けを削除します。

Namespace:Microsoft.Isam.Esent.Interop
アセンブリ: Microsoft.Isam.Esent.Interop (Microsoft.Isam.Esent.Interop.dll)

構文

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

パラメーター

  • context
    種類: System.IntPtr

    設定するコンテキスト。

関連項目

リファレンス

Api クラス

Api メンバー

Microsoft.Isam.Esent.Interop 名前空間