A code share flight is a flight booked through one airline but operated by another airline (as indicated on your ticket). Depending on the airline that operates the flight you receive Basic points or Extra points.
In exceptional cases, you receive no points at all. This applies to travels with a tour operator that has chartered a SAS aircraft. When flying on a chartered flight you are also not able to use your EuroBonus benefits.