Are you talking a CCAP class (like, in California, for math or social sciences)?
From what I understand the guidance counsellor telling us last year, the AP class doesn’t give our student the credit - but the AP Test does.
Don’t know how this would work for someone who self-studies an AP subject and takes the AP Test and does well - but doesn’t have the corresponding class on the student’s transcript.
And, I think another poster on cc wrote that Canadian schools recognize AP classes/AP test scores, but not college DE credits, due to the wide variety of colleges/standards in the states.