Share via


Api.JetSetSessionCoNtext 方法

使用指定的內容控制碼,將會話與目前線程產生關聯。 此關聯會覆寫指定會話的交易必須完全發生在相同執行緒上的預設引擎需求。 使用 JetResetSessionCoNtext (JET_SESID) 移除關聯。

Namespace:Microsoft.Isam.Esent.Interop
裝配: microsoft.Isam.Esent.Interop (in 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
)

參數

另請參閱

參考

Api 類別

Api 成員

Microsoft.Isam.Esent.Interop 命名空間