Show Method
Collapse the table of content
Expand the table of content

BingMapsTask.Show Method

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

Shows the Bing Maps application centered at the location specified with the Center property or at the user’s current location. If SearchTerm is set, locations matching the search term are tagged on the map.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public void Show()

You must set the center location, a search term, or both before calling Show. Calling Show without setting either of these values will throw an InvalidOperationException.

The Bing Maps application will not be launched if the device is in a location where it is not supported. Instead, a dialog will be displayed to the user indicating that Bing Maps is unavailable in their location.

This method may throw one of the following exceptions.

InvalidOperationException

Center and SearchTerm cannot both be empty.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft