The influence of the carrier concentration on the elasticity is measured for a microscale silicon resonator. UV radiation is used to generate a surface charge that gates the underlying carrier concentration, as indicated by the device resistance. Correlated with the carrier concentration change is a drop in the resonant frequency that persists for 60 hours following exposure. Model calculations show that the change in resonant frequency is due to the modification of the elastic modulus in the near-surface region. This effect becomes increasingly important as device dimensions are reduced to the nanometer scale, and contributes an important source of instability for micro and nano scale electro mechanical devices operating in radiation environments.