Two or three ways solenoid valves are electromagnetic shut-off valves with on-off function, which can be used for neutral gases and liquid media.