RemoveRoute Method
Collapse the table of content
Expand the table of content

Map.RemoveRoute Method

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

Removes the specified route from the Map.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

public bool RemoveRoute(
	MapRoute mapRoute


Type: Microsoft.Phone.Maps.Controls.MapRoute
The route to remove from the Map.

Return Value

Type: System.Boolean
true if the specified route was removed from the Map;otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft