GeoCoordinateWatcher Constructors

Definition

Initializes a new instance of GeoCoordinateWatcher.

Overloads

GeoCoordinateWatcher()

Initializes a new instance of GeoCoordinateWatcher with default accuracy settings.

GeoCoordinateWatcher(GeoPositionAccuracy)

Initializes a new instance of GeoCoordinateWatcher, given an accuracy level.

Remarks

Note In versions of Windows prior to Windows 7, the following conditions apply:

GeoCoordinateWatcher()

Initializes a new instance of GeoCoordinateWatcher with default accuracy settings.

C#
public GeoCoordinateWatcher();

Remarks

The default accuracy setting is Default.

Note In versions of Windows prior to Windows 7, the following conditions apply:

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GeoCoordinateWatcher(GeoPositionAccuracy)

Initializes a new instance of GeoCoordinateWatcher, given an accuracy level.

C#
public GeoCoordinateWatcher(System.Device.Location.GeoPositionAccuracy desiredAccuracy);

Parameters

desiredAccuracy
GeoPositionAccuracy

GeoPositionAccuracy that indicates the requested accuracy level of the location provider.

An accuracy of High can degrade performance and should be specified only when high accuracy is needed.

Remarks

Note In versions of Windows prior to Windows 7, the following conditions apply:

Applies to

.NET Framework 4.8.1 i druge verzije
Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1