This topic has not yet been rated - Rate this topic

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)
public class GeoLocationProvider : IDisposable, 
	INotifyPropertyChanged

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 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.

System.Object
  System.Device.Location.GeoLocationProvider
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
Did you find this helpful?
(1500 characters remaining)