LocationDisp.LatLongReportFactory.DesiredAccuracy property

[The Location API object model is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, to access location from a website, use the W3C Geolocation API. To access location from a desktop application, use the Windows.Devices.Geolocation API.]

The current desired-accuracy value.

This property is read/write.

Syntax

DesiredAccuracy = LocationDisp.LatLongReportFactory.DesiredAccuracy
LocationDisp.LatLongReportFactory.DesiredAccuracy = DesiredAccuracy

Property value

This property is a read/write ULONG.

Value Meaning
0
Default. The sensor should use the accuracy for which it can optimize power use and other cost considerations.
1
The sensor should deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth.

Remarks

This value is a request to the location provider. The location provider is not required to provide reports at the interval you requested. Read the value of this property to discover the true report interval setting.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
None supported