GuidanceRoute.TryCreateFromMapRoute(MapRoute) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a GuidanceRoute object that's based on the specified MapRoute.
Note
This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about the Windows.Services.Maps.Guidance namespace, please work with your Microsoft Account Team representative.
public:
static GuidanceRoute ^ TryCreateFromMapRoute(MapRoute ^ mapRoute);
static GuidanceRoute TryCreateFromMapRoute(MapRoute const& mapRoute);
public static GuidanceRoute TryCreateFromMapRoute(MapRoute mapRoute);
function tryCreateFromMapRoute(mapRoute)
Public Shared Function TryCreateFromMapRoute (mapRoute As MapRoute) As GuidanceRoute
Parameters
- mapRoute
- MapRoute
The potential route to be navigated.
Returns
A GuidanceRoute object that's based on the specified MapRoute object; otherwise, if the mapRoute cannot be converted, null.