§ 18.2-287.4. Carrying loaded firearms in public areas prohibited; penalty.
It shall be unlawful for any person to carry a loaded (a) semi-automatic center-fire rifle or pistol that expels single or multiple projectiles by action of an explosion of a combustible material and is equipped at the time of the offense with a magazine that will hold more than 20 rounds of ammunition or designed by the manufacturer to accommodate a silencer or equipped with a folding stock or (b) shotgun with a magazine that will hold more than seven rounds of the longest ammunition for which it is chambered on or about his person on any public street, road, alley, sidewalk, public right-of-way, or in any public park..............
.....The provisions of this section shall not apply to law-enforcement officers, licensed security guards, military personnel in the performance of their lawful duties, or any person having a valid concealed handgun permit or to any person actually engaged in lawful hunting or lawful recreational shooting activities at an established shooting range or shooting contest. Any person violating the provisions of this section shall be guilty of a Class 1 misdemeanor.