Effect of magnetic field on dust charging and corresponding probe measurement