Any person who gives or tenders any campaign materials to, or solicits or attempts to influence the vote of, any person while he is at any registration location as defined in Article 3 (§ 24.2-411 et seq.) of Chapter 4 of this title knowing that such person is there for the purpose of registration, shall be guilty of a Class 3 misdemeanor. Nothing in this section shall prohibit the distribution of campaign materials outside any building in which a registration activity is being conducted.
Va. Code § 24.2-1003