Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

GeoCoordinate.Longitude Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the longitude of the GeoCoordinate.

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)
XMLNS for XAML: Not mapped to an xmlns.

public double Longitude { get; set; }
<object Longitude="double" .../>

Property Value

Type: System.Double
Type: Double. The longitude of the GeoCoordinate.

The longitude value must be between -180 and 180.

Setting this property may throw one of the following exceptions.


The argument must be in range -180 to 180.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone