MapRouteRestrictions 列舉

定義

指定套用至路由的限制。 此列舉會提供 GetDrivingRouteAsyncGetDrivingRouteFromWaypointsAsync 方法之某些多載之特定參數的值。

此列舉支援其成員值的位元組合。

public enum class MapRouteRestrictions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class MapRouteRestrictions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum MapRouteRestrictions
Public Enum MapRouteRestrictions
繼承
MapRouteRestrictions
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

DirtRoads 16

避免道路。

Ferries 4

避免鐵道。

Highways 1

避免道路。

Motorail 32

避免馬達訓練服務。

None 0

路由不會套用任何限制。

TollRoads 2

避免收費道路。

Tunnels 8

避免通道。

備註

您的通用 Windows 應用程式必須先經過驗證,才能使用Windows.Services.Maps命名空間中的MapControl和地圖服務。 若要驗證您的應用程式,則必須指定地圖驗證金鑰。

請參閱 要求地圖驗證金鑰

適用於

另請參閱