Permission Property
Collapse the table of content
Expand the table of content

GeoCoordinateWatcher.Permission Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft