When the duties of a sheriff or deputy sheriff are such that the wearing of the standard sheriff's uniform would adversely limit the effectiveness of the sheriff's or deputy sheriff's ability to perform his prescribed duties, then clothing appropriate for the duties to be performed may be required by the sheriff.
Va. Code § 15.2-1611