Ultra violet light is just part of the electromagnetic spectrum from radio waves up to x and gamma rays.
If you think about it a bit you'll probably see that different materials transmit or absorb different frequencies of radiation.
Photons of light have a specific frequency, and that equates to a certain discrete energy, if the material the photon hits can be excited to a new energy state by exactly that amount then it can absorb that photon.
Most metals will reflect or absorb most frequencies - they effectively have a sea of electrons that can be excited by almost any energy.
Non metals tend to have fewer possible energy states and absorb more specific energy ranges.
Few materials have energy bands that can block frequencies as small (and hence energies as high) as x or gamma rays