共用方式為


GuidanceNavigator.Rerouted 事件

定義

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

注意

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

// Register
event_token Rerouted(TypedEventHandler<GuidanceNavigator, GuidanceReroutedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GuidanceNavigator::Rerouted_revoker Rerouted(auto_revoke_t, TypedEventHandler<GuidanceNavigator, GuidanceReroutedEventArgs const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,GuidanceReroutedEventArgs> Rerouted;
function onRerouted(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("rerouted", onRerouted);
guidanceNavigator.removeEventListener("rerouted", onRerouted);
- or -
guidanceNavigator.onrerouted = onRerouted;
Public Custom Event Rerouted As TypedEventHandler(Of GuidanceNavigator, GuidanceReroutedEventArgs) 

事件類型

適用於