Elections Code § 300.5
CHAPTER 4. Definitions
“Affiliated with a political party” as used in reference to a voter or to a candidate for a voter-nominated office means the party preference that the voter or candidate has disclosed on his or her affidavit of registration.