/// <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> /// <returns>The operation context of the specified database session.</returns> public static JET_OPERATIONCONTEXT GetOperationContext(this Session session) { JET_OPERATIONCONTEXT output; Windows10Api.JetGetSessionParameter(session.JetSesid, Windows10Sesparam.OperationContext, out output); return(output); }
/// <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); }