共用方式為


GuidanceNavigator.Rerouting 事件

定義

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

注意

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

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

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

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

事件類型

適用於