Most likely. The switch should also have a DC switching current and voltage rating marked on the switch or in its data sheet.
It may not be suitable if you are trying to switch a very inductive or capacitive load or if the load has a high DC inrush current (eg- large inductor, capacitor bank, DC motor, etc). If you are trying to do this then consult the switch data sheet or choose a suitably rated DC switch.
Yep, should work. You should be able to push well over 2 A @ 24V through the switch... but Indeed take the first advise and look at the rating before pushing any juice through it.
Not sure the illumination will work...
Definitely check the specs on the switch.
__________________
Don't believe everything you read on the Internet!
I used this switch and it works alright and like you suggest, illumination part doesn't work - thats ok. I just want to find out if it would do any long term damage - if it is designed for ac current, dc for long time may damage it?
Digi-key and others have switch spec's that list ratings for several kinds of loads for the same switch.
Using these and some data reduction you could figure out how many switching cycles you can get when running it with other than spec'ed conditions.
You might also Google
MTBF switch AC DC inductive incandescent motor resistive lamp