Share via


GeolocationAccessStatus Enum

Definition

Indicates if your app has permission to access location data.

public enum class GeolocationAccessStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class GeolocationAccessStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum GeolocationAccessStatus
var value = Windows.Devices.Geolocation.GeolocationAccessStatus.unspecified
Public Enum GeolocationAccessStatus
Inheritance
GeolocationAccessStatus
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
location

Fields

Name Value Description
Unspecified 0

Permission to access location was not specified.

Allowed 1

Permission to access location was granted.

Denied 2

Permission to access location was denied.

Applies to