Label Property
Collapse the table of content
Expand the table of content

LabeledMapLocation.Label Property

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

Gets or sets the text label that identifies the associated geographic location.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property Label As String
<object Label="string" .../>

Property Value

Type: System.String
Type: String. The label that identifies the associated geographic location.

If the Location property is null, the Label value is used as a search term for the Bing Maps application.

To be considered valid, the value of this property must be non-null and not consist solely of white space. When used with the task, either the Label property or the Location property must be set to a valid value before calling Show or an exception will be thrown.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft