共用方式為


GuidanceNavigator.DestinationReached 事件

定義

到達路由目的地時發生。

注意

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

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

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

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

事件類型

適用於