16 Pa.C.S. § 12302
(a) Legislative member, school director or board of health member.— An elected county officer or, in counties of the third, fourth, fifth, sixth, seventh and eighth class, county solicitor, if the county solicitor is an individual, may not, at the same time, serve as: