MapRouteManeuver 类

定义

表示要沿路线段的路径执行的操作。

public ref class MapRouteManeuver sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapRouteManeuver final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapRouteManeuver
Public NotInheritable Class MapRouteManeuver
继承
Object Platform::Object IInspectable MapRouteManeuver
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

MapRouteManeuver 对象的集合通过 MapRouteLeg 对象的 Maneuvers 属性返回。 MapRouteLeg 对象的集合通过 MapRoute 对象的 Legs 属性返回。 调用 MapRouteFinder 类的方法时,将通过 MapRouteFinderResult 的 Route 属性返回MapRoute 对象。

通用 Windows 应用必须先进行身份验证,然后才能使用 Windows.Services.Maps 命名空间中的 MapControl 和地图服务。 若要对应用进行身份验证,必须指定地图身份验证密钥。

请参阅 请求映射身份验证密钥

版本历史记录

Windows 版本 SDK 版本 已添加值
1703 15063 警告

属性

EndHeading

获取一个值,该值指示操纵结束时的航向(以度为单位),其中 0 或 360 = 北,90 = 东,180 = 南,270 = 西。

ExitNumber

获取路由操纵的退出次数。

InstructionText

获取与操纵关联的指令文本。

Kind

获取操纵的类型。

LengthInMeters

获取到下一个演习开始的距离(以米为单位)。

ManeuverNotices

获取与操纵关联的其他信息。

StartHeading

获取一个值,该值指示演习开始时的航向(以度为单位),其中 0 或 360 = 北,90 = 东,180 = 南,270 = 西。

StartingPoint

获取操纵开始的位置。

StreetName

获取 InstructionText 中指定的街道名称(如果可用)。

Warnings

获取沿路线段的潜在问题的列表。

适用于

另请参阅