GuidanceNavigator.GuidanceUpdated 事件

定义

更新导航指南时发生。

注意

此 API 不适用于所有 Windows 应用。 除非开发人员帐户是由Microsoft专门预配的,否则对此 API 的调用将在运行时失败。 有关 Windows.Services.Maps.Guidance 命名空间的详细信息,请与你的Microsoft帐户团队代表协作。

// Register
event_token GuidanceUpdated(TypedEventHandler<GuidanceNavigator, GuidanceUpdatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GuidanceNavigator::GuidanceUpdated_revoker GuidanceUpdated(auto_revoke_t, TypedEventHandler<GuidanceNavigator, GuidanceUpdatedEventArgs const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,GuidanceUpdatedEventArgs> GuidanceUpdated;
function onGuidanceUpdated(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("guidanceupdated", onGuidanceUpdated);
guidanceNavigator.removeEventListener("guidanceupdated", onGuidanceUpdated);
- or -
guidanceNavigator.onguidanceupdated = onGuidanceUpdated;
Public Custom Event GuidanceUpdated As TypedEventHandler(Of GuidanceNavigator, GuidanceUpdatedEventArgs) 

事件类型

适用于