If it only has 2, then one is the power and the other goes to the accessory. Some switches are grounded, but they dont have to be.
you'll probably see a prong with a + and a prong with "acc". acc is the wire that goes to the accessory, and the + is the power. The accessory needs to be grounded of course, but it will have its own ground wire.