GeoLocationProvider Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Provides the current location data.
Namespace: System.Device.Location
Assembly: System.Device (in System.Device.dll)
To begin accessing location, create a GeoLocationProvider, and call Start to start the acquisition of data from the current location provider. The Status property can be checked to determine if data is available. If data is available, you can get the location once from the Location property, or receive continuous location updates using the LocationChanged event.
In Windows 7, all the System.Device.Location classes are fully functional if a location provider is installed and able to resolve the computer's location. On Windows 7 Starter Edition the only supported location provider is the Default Location Provider.
Note
|
|---|
|
In versions of Windows other than Windows 7, all System.Device.Location objects that have constructors can be created, but the Status property always has the value Disabled, the Location property always returns Unknown, and no location events will occur.
|
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note