PositionSource Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the source used to obtain a Geocoordinate.
public enum class PositionSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PositionSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PositionSource
var value = Windows.Devices.Geolocation.PositionSource.cellular
Public Enum PositionSource
- Inheritance
-
PositionSource
- 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
ID_CAP_LOCATION [Windows Phone]
|
Fields
Name | Value | Description |
---|---|---|
Cellular | 0 | The position was obtained from cellular network data. |
Satellite | 1 | The position was obtained from satellite data. |
WiFi | 2 | The position was obtained from Wi-Fi network data. |
IPAddress | 3 | (Starting with Windows 8.1.) The position was obtained from an IP address. |
Unknown | 4 | (Starting with Windows 8.1.) The position was obtained from an unknown source. |
Default | 5 | (Starting with Windows 10, version 1607.) The position was obtained from the user's manually-set location. |
Obfuscated | 6 | (Starting with Windows 10, version 1607.) The position was obtained via the coarse location feature and was therefore intentionally made inaccurate to a degree. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | Default |
1607 | 14393 | Obfuscated |