Share via

MapsTask.SearchTerm Property

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

Gets or sets the search term that is used to find and tag locations on the map.

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


Public Property SearchTerm As String
public string SearchTerm { get; set; }
<object SearchTerm="string" .../>

Property Value

Type: System..::.String
Type: String. The search term used to find and tag locations on the map.


You must set either the SearchTerm property or the Center property before calling Show()()() or an InvalidOperationException will be thrown.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also


MapsTask Class

Microsoft.Phone.Tasks Namespace

Other Resources

Launchers and Choosers for Windows Phone 8

How to use the Maps task for Windows Phone 8