Low-temperature electronic properties of Sr2RuO4. III. Magnetic fields