LabeledMapLocation Constructor (String, GeoCoordinate)
Collapse the table of content
Expand the table of content

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)

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.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft