The invention relates to a
solenoid valve (100), which has a valve rod (141), an electromagnetic actuation device (131, 135, 139) for deflecting the valve rod (141) starting from a first switching position into a second switching position, and a support device (110, 210, 310, 410) for supporting the valve rod (141). The support device (110, 210, 310, 410) has a different form depending upon the deflection of the valve rod (141). The
solenoid valve (100) further comprises a locking device (121, 122, 123, 125), which is designed to move a moveable holding element (121) into a locking position upon activation of the electromagnetic actuation device (131, 135, 139) in order to deflect the valve rod (141) into the second switching position, in which locking position the holding element (121) lies against the support device (110, 210, 310, 410), and is designed to move the holding element (121) away from the locking position upon deactivation of the electromagnetic actuation device (131, 135, 139).