Windows Dev Center

GeoCoordinateWatcher.Permission Property

The application’s level of access to the location service.

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)

public GeoPositionPermission Permission { get; private set; }

Property Value

Type: System.Device.Location.GeoPositionPermission
The application’s access to the location service.

If you attempt to start data acquisition from the Location Service and the Status property is Disabled, the user may have disabled the Location Service on their phone. You can determine this by checking to see if the Permission property is Denied. If so, you may want to alert the user so that they can enable the service if they choose to do so.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft