Location Constructor (Double, Double, Double, AltitudeReference)
This documentation is no longer available on MSDN, however it is available as a CHM download.
Initializes a new instance of the Location structure using the given latitude, longitude, altitude, and altitude reference values.
Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl.Common (in Microsoft.Maps.MapControl.Common.dll)
Usage
Syntax
'Declaration
Public Sub New ( _
latitude As Double, _
longitude As Double, _
altitude As Double, _
altitudeReference As AltitudeReference _
)
public Location (
double latitude,
double longitude,
double altitude,
AltitudeReference altitudeReference
)
public:
Location (
double latitude,
double longitude,
double altitude,
AltitudeReference altitudeReference
)
public Location (
double latitude,
double longitude,
double altitude,
AltitudeReference altitudeReference
)
public function Location (
latitude : double,
longitude : double,
altitude : double,
altitudeReference : AltitudeReference
)
Parameters
- latitude
The latitude of the location.
- longitude
The longitude of the location.
- altitude
The altitude of the location.
- altitudeReference
The reference plane used to measure the altitude.
Remarks
If the specified values of Latitude and Longitude are not within the range of valid values for these properties, they are converted to valid values. The range of valid values for Latitude is -90 to 90. The range of valid values for Longitude is -180 to 180.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
See Also
Reference
Location Class
Location Members
Microsoft.Maps.MapControl Namespace