GeoCoordinateWatcher Constructors
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.
Initializes a new instance of GeoCoordinateWatcher.
GeoCoordinateWatcher() |
Initializes a new instance of GeoCoordinateWatcher with default accuracy settings. |
GeoCoordinateWatcher(GeoPositionAccuracy) |
Initializes a new instance of GeoCoordinateWatcher, given an accuracy level. |
Note In versions of Windows prior to Windows 7, the following conditions apply:
All System.Device.Location objects that have constructors can be created, but the Status property will always have the value Disabled.
The location indicated by the Location property of Position will always be Unknown.
No location events will be raised.
Initializes a new instance of GeoCoordinateWatcher with default accuracy settings.
public:
GeoCoordinateWatcher();
public GeoCoordinateWatcher();
Public Sub New ()
Remarks
The default accuracy setting is Default.
Note In versions of Windows prior to Windows 7, the following conditions apply:
All System.Device.Location objects that have constructors can be created, but the Status property will always have the value Disabled.
The location indicated by the Location property of Position will always be Unknown.
No location events will be raised.
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 |
Initializes a new instance of GeoCoordinateWatcher, given an accuracy level.
public:
GeoCoordinateWatcher(System::Device::Location::GeoPositionAccuracy desiredAccuracy);
public GeoCoordinateWatcher(System.Device.Location.GeoPositionAccuracy desiredAccuracy);
new System.Device.Location.GeoCoordinateWatcher : System.Device.Location.GeoPositionAccuracy -> System.Device.Location.GeoCoordinateWatcher
Public Sub New (desiredAccuracy As GeoPositionAccuracy)
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:
All System.Device.Location objects that have constructors can be created, but the Status property will always have the value Disabled.
The location indicated by the Location property of Position will always be Unknown.
No location events will be raised.
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 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: