This topic has not yet been rated - Rate this topic

FMRadio.Frequency Property

Windows Phone

March 22, 2012

Tunes the FMRadio to a new frequency.

Namespace:  Microsoft.Devices.Radio
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public double Frequency { get; set; }

Property Value

Type: System.Double
Returns Double.

If the FMRadio is not already turned on, setting this property turns it on. Setting the frequency to a value outside of the allowed set for the current region causes an InvalidArgumentException to be thrown.

Frequency is not persistent across sessions. As a best practice, your application can check and verify that the Frequency property returns the intended value when the radio is being tuned.

When setting this property, the assigned value must be in MHz and must be greater than zero.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)