/// <summary> /// Sets a parameter on the provided session state, used for the lifetime of this session or until reset. /// </summary> /// <param name="sesid">The session to set the parameter on.</param> /// <param name="sesparamid">The ID of the session parameter to retrieve.</param> /// <param name="operationContext">An operation context to retrieve.</param> /// <seealso cref="JET_OPERATIONCONTEXT"/> public static void JetGetSessionParameter( JET_SESID sesid, JET_sesparam sesparamid, out JET_OPERATIONCONTEXT operationContext) { Api.Check(Api.Impl.JetGetSessionParameter(sesid, sesparamid, out operationContext)); }
/// <summary> /// A client context of type <see cref="JET_OPERATIONCONTEXT"/> that the engine uses to track /// and trace operations (such as IOs). /// </summary> /// <param name="session">The <see cref="Session"/> to query.</param> /// <param name="operationcontext">The operation context to set.</param> public static void SetOperationContext( this Session session, JET_OPERATIONCONTEXT operationcontext) { Windows10Api.JetSetSessionParameter(session.JetSesid, Windows10Sesparam.OperationContext, operationcontext); }