GuidanceRoute.CanCreateFromMapRoute(MapRoute) Method

Definition

Checks if the specified MapRoute object can be converted to a GuidanceRoute object.

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 bool CanCreateFromMapRoute(MapRoute ^ mapRoute);
 static bool CanCreateFromMapRoute(MapRoute const& mapRoute);
public static bool CanCreateFromMapRoute(MapRoute mapRoute);
function canCreateFromMapRoute(mapRoute)
Public Shared Function CanCreateFromMapRoute (mapRoute As MapRoute) As Boolean

Parameters

mapRoute
MapRoute

The potential route to be navigated.

Returns

Boolean

bool

true if a GuidanceRoute object can be created; otherwise, false.

Applies to