Metallic case or integral heatsink of component electrically connected to a pad on PCB