共用方式為


GuidanceNavigator.RerouteFailed 事件

定義

重新路由導覽指引失敗時發生。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則對此 API 的呼叫會在執行時間失敗。 如需 Windows.Services.Maps.Guidance 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。

// Register
event_token RerouteFailed(TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;

// Revoke with event_token
void RerouteFailed(event_token const* cookie) const;

// Revoke with event_revoker
GuidanceNavigator::RerouteFailed_revoker RerouteFailed(auto_revoke_t, TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,object> RerouteFailed;
function onRerouteFailed(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("reroutefailed", onRerouteFailed);
guidanceNavigator.removeEventListener("reroutefailed", onRerouteFailed);
- or -
guidanceNavigator.onreroutefailed = onRerouteFailed;
Public Custom Event RerouteFailed As TypedEventHandler(Of GuidanceNavigator, Object) 

事件類型

適用於