GeoCoordinate Constructor (Double, Double)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the GeoCoordinate class from latitude and longitude data.

Namespace:   System.Device.Location
Assembly:  System.Device (in System.Device.dll)

public GeoCoordinate(
	double latitude,
	double longitude
)

Parameters

latitude
Type: System.Double

The latitude of the location. May range from -90.0 to 90.0.

longitude
Type: System.Double

The longitude of the location. May range from -180.0 to 180.0.

Exception Condition
ArgumentOutOfRangeException

Latitude or longitude is out of range.

The latitude and longitude values must correspond to an actual location on the globe.

.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: