Va. Code Ann. § 15.2-1726.1
A. For the purposes of this section:
"Federal immigration enforcement agreement" means an agreement with a federal agency authorizing a law-enforcement officer or employee of the Commonwealth or any of its localities to perform a function of a federal immigration officer or an intergovernmental service agreement with a federal agency authorizing the civil immigration detention of a person in a local, regional, or state correctional facility if such facility also detains or incarcerates persons for violations of the criminal laws of the Commonwealth.
"Law-enforcement agency" means any state or local agency that employs law-enforcement officers and that has as its principal function the enforcement of the laws of the Commonwealth and its localities. "Law-enforcement agency" includes any sheriff's office, any police department, any local or regional correctional facility, the Department of State Police, the Department of Corrections, the Department of Juvenile Justice, or any other local or state agency or department that performs law-enforcement functions or that was created to enforce the laws of the Commonwealth and its localities.
C. No law-enforcement agency shall maintain, renew, or enter into any federal immigration enforcement agreement unless such agreement includes the following provisions:
2026, cc. 1028, 1098.