Solenoids can work on both AC and DC current. However, an AC solenoid can differ in design from a DC solenoid. With AC, the constantly changing current can cause vibrations in the core. Smoothing systems are used to counteract this, but these are not needed in DC solenoids.