Notwithstanding any provision of §§ 2.2-2814, 2.2-2815, 2.2-2816, 2.2-2823, 2.2-2824, 2.2-2825 or § 2.2-2826 to the contrary, whenever there shall be authorized by law an attorney for the Commonwealth, the Department may contract with the county or city or combination thereof for whom such attorney for the Commonwealth is authorized regarding the payment by the Department of the salary, expenses, including secretarial services, and allowances or part thereof of such attorney, as shall be approved by the Compensation Board, for the entire time devoted to these duties. Any such contract may provide that the county, city or combination thereof shall pay such salary, expenses and allowances and that the Department shall reimburse such county or city therefor. The amount of such salary, expenses and allowances shall be set by the Compensation Board as provided by law.
Whenever there is in any county or city a county attorney or city attorney whose duties consist of legal services with respect to the provisions of this chapter, the Department may contract with such county or city regarding the duties of such county or city attorney and regarding payment by the Department of the salary, expenses, including secretarial services, and allowances or part thereof of such attorney for the time devoted to these duties. Any such contract may provide that the county or city shall pay such salary, expenses and allowances and that the Department shall reimburse such county or city therefor.
Va. Code § 63.2-1948