Location Class

This documentation is no longer available on MSDN, however it is available as a CHM download.

Contains the altitude and coordinate values of a location on the map.

Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl.Common (in Microsoft.Maps.MapControl.Common.dll)

Usage

Syntax

'Declaration
<ScriptableTypeAttribute> _
<DataContractAttribute(Namespace:="http://dev.virtualearth.net/webservices/v1/common")> _
<TypeConverterAttribute(GetType(LocationConverter))> _
Public Class Location
    Implements IFormattable
[ScriptableTypeAttribute] 
[DataContractAttribute(Namespace="http://dev.virtualearth.net/webservices/v1/common")] 
[TypeConverterAttribute(typeof(LocationConverter))] 
public class Location : IFormattable
[ScriptableTypeAttribute] 
[DataContractAttribute(Namespace=L"http://dev.virtualearth.net/webservices/v1/common")] 
[TypeConverterAttribute(typeof(LocationConverter))] 
public ref class Location : IFormattable
/** @attribute ScriptableTypeAttribute() */ 
/** @attribute DataContractAttribute(Namespace="http://dev.virtualearth.net/webservices/v1/common") */ 
/** @attribute TypeConverterAttribute(Microsoft.Maps.MapControl.Design.LocationConverter) */ 
public class Location implements IFormattable
ScriptableTypeAttribute 
DataContractAttribute(Namespace="http://dev.virtualearth.net/webservices/v1/common") 
TypeConverterAttribute(Microsoft.Maps.MapControl.Design.LocationConverter) 
public class Location implements IFormattable

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.

Inheritance Hierarchy

System.Object
  Microsoft.Maps.MapControl.Location

Thread Safety

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

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 Members
Microsoft.Maps.MapControl Namespace