A solenoid valve device comprising: a body including a gas passage through which gas flows, and an accommodation portion communicating with the gas passage; a solenoid valve that is accommodated in the accommodation portion, and that controls flow of the gas in the gas passage by opening and closing the gas passage; a sealing member (31, 32, 33) disposed between the accommodation portion and the solenoid valve to maintain airtightness of the gas passage; and a cylindrical solenoid that receives electricity and generates power for the solenoid valve to open and close the gas passage, wherein: the body is provided with a communication hole that allows communication between inside and outside of the accommodation portion, and the communication hole is provided such that the axis of the communication hole is orthogonal to the axis of the solenoid; the solenoid includes a connection terminal portion extending toward the communication hole; and a connector into which the connection terminal portion is inserted is accommodated in the communication hole, the connector being connected to a power supply that supplies electricity to the solenoid via the connection terminal portion, wherein the communication hole is provided such that the axis of the communication hole crosses an axis of the solenoid, characterized in that a biasing member is disposed between one end of the solenoid and a first wall portion of the accommodation portion facing the one end in a direction in which the axis of the solenoid extends, the biasing member biases the other end of the solenoid opposite to the one end against a second wall portion of the accommodation portion facing the other end, in a direction in which the axis of the solenoid extends, the manner in which the connector is accommodated in the communication hole is such that rotation of the connector in a circumferential direction about an axis of the communication hole is suppressed, a cutout groove is formed on an inner peripheral surface of the communication hole, a projection projecting from the connector and fitted into the cutout groove is provided on an outer periphery of the connector, and a depth direction of the cutout groove and a projection direction of the projection coincide with a direction in which the biasing member biases the solenoid. a body including a gas passage through which gas flows, and an accommodation portion communicating with the gas passage; a solenoid valve that is accommodated in the accommodation portion, and that controls flow of the gas in the gas passage by opening and closing the gas passage; a sealing member (31, 32, 33) disposed between the accommodation portion and the solenoid valve to maintain airtightness of the gas passage; and a cylindrical solenoid that receives electricity and generates power for the solenoid valve to open and close the gas passage, wherein: the body is provided with a communication hole that allows communication between inside and outside of the accommodation portion, and the communication hole is provided such that the axis of the communication hole is orthogonal to the axis of the solenoid; the solenoid includes a connection terminal portion extending toward the communication hole; and a connector into which the connection terminal portion is inserted is accommodated in the communication hole, the connector being connected to a power supply that supplies electricity to the solenoid via the connection terminal portion, wherein the body is provided with a communication hole that allows communication between inside and outside of the accommodation portion, and the communication hole is provided such that the axis of the communication hole is orthogonal to the axis of the solenoid; the solenoid includes a connection terminal portion extending toward the communication hole; and a connector into which the connection terminal portion is inserted is accommodated in the communication hole, the connector being connected to a power supply that supplies electricity to the solenoid via the connection terminal portion, wherein the communication hole is provided such that the axis of the communication hole crosses an axis of the solenoid, characterized in that a biasing member is disposed between one end of the solenoid and a first wall portion of the accommodation portion facing the one end in a direction in which the axis of the solenoid extends, the biasing member biases the other end of the solenoid opposite to the one end against a second wall portion of the accommodation portion facing the other end, in a direction in which the axis of the solenoid extends, the manner in which the connector is accommodated in the communication hole is such that rotation of the connector in a circumferential direction about an axis of the communication hole is suppressed, a cutout groove is formed on an inner peripheral surface of the communication hole, a projection projecting from the connector and fitted into the cutout groove is provided on an outer periphery of the connector, and a depth direction of the cutout groove and a projection direction of the projection coincide with a direction in which the biasing member biases the solenoid.