Share via


Geocoordinate.Longitude Property

Definition

Note

Longitude may be altered or unavailable after Windows 8.1 and Windows Phone 8.1. Instead, use Geocoordinate.Point.

The longitude in degrees.

public:
 property double Longitude { double get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("Longitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Longitude", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
double Longitude();
/// [get: Windows.Foundation.Metadata.Deprecated("Longitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Longitude", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
double Longitude();
public double Longitude { [Windows.Foundation.Metadata.Deprecated("Longitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Longitude", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public double Longitude { [Windows.Foundation.Metadata.Deprecated("Longitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Longitude", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var double = geocoordinate.longitude;
Public ReadOnly Property Longitude As Double

Property Value

Double

double

The longitude in degrees. The valid range of values is from -180.0 to 180.0.

Attributes

Windows requirements

App capabilities
location ID_CAP_LOCATION [Windows Phone]

Applies to