The sample is dissolved in a polar solvent and pushed through a small nozzle at high pressure. A high voltage is applied, causing the molecule to gain a proton. The ionised particles are then separated from the solvent, leaving a gaseous sample of ions.