LabeledMapLocation Constructor (String, GeoCoordinate)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a new instance of the LabeledMapLocation class.
Namespace: Microsoft.Phone.Tasks
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Sub New ( _
label As String, _
location As GeoCoordinate _
)
public LabeledMapLocation(
string label,
GeoCoordinate location
)
Parameters
- label
Type: System..::.String
The label that identifies the associated geographic location.
- location
Type: System.Device.Location..::.GeoCoordinate
The geographic coordinate associated with a labeled map location.
Remarks
Either the Location property or the Label property must be set to a valid value before calling Show()()() or an exception will be thrown. If only the Label property is set, its value will be used as search terms by the Bing Maps application.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone