If a county or district officer resides in a territory annexed to a city, such officer may continue in office until the end of the term for which he was elected or appointed. The provisions of § 15.2-3823 shall prevail with respect to successive reelections of such officers. Removal of such officer, during his term of office from any such territory, to another part of the city or town to which it is annexed shall not vacate his office, but residence in any part of such city or town shall during his term of office be deemed residence in the county or district.
Va. Code § 15.2-3225