GeoCoordinateWatcher Constructors
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.
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:
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.
GeoCoordinateWatcher()
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
GeoCoordinateWatcher(GeoPositionAccuracy)
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.