The application of high-spectral resolution microwave observations to the study of solar activity is discussed with particular emphasis on the frequency dependence of microwave emission from solar active regions. A shell model of gyroresonance emission from active regions is described which suggest that high-spectral resolution, spatially-resolved observations can provide quantitative information about the magnetic field distribution at the base of the corona. Corresponding observations of a single sunspot with the Owens Valley frequency-agile interferometer at 56 frequencies between 1.2 and 14 Ghs are presented. The overall form of the observed size and brightness temperature spectra was consistent with expectations based on the shell model, although there were differences of potential physical significance. The merits and weaknesses of microwave spectroscopy as a technique for measuring magnetic fields in the solar corona are briefly discussed.