BingMapsDirectionsTask.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 with driving directions displayed for the specified starting and ending locations.
Namespace: Microsoft.Phone.Tasks
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Sub Show
public void Show()
Remarks
If the starting or ending location is not specified before calling Show, the user’s current location is used. However, you must provide one or the other. If both the starting and ending locations are null, an exception will be thrown.
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 |
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone
See Also
Reference
Microsoft.Phone.Tasks Namespace
Other Resources
Launchers and Choosers for Windows Phone 8
How to use the Bing Maps directions task for Windows Phone 8