GuidanceNavigator.UserLocationLost Ereignis
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Tritt auf, wenn der Standort des Benutzers verloren gegangen ist.
Anmerkung
Diese API ist nicht für alle Windows-Apps verfügbar. Sofern Ihr Entwicklerkonto nicht speziell von Microsoft bereitgestellt wird, schlagen Aufrufe dieser API zur Laufzeit fehl. Weitere Informationen zum Windows.Services.Maps.Guidance Namespace können Sie mit Ihrem Microsoft-Kontoteammitarbeiter verwenden.
// Register
event_token UserLocationLost(TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;
// Revoke with event_token
void UserLocationLost(event_token const* cookie) const;
// Revoke with event_revoker
GuidanceNavigator::UserLocationLost_revoker UserLocationLost(auto_revoke_t, TypedEventHandler<GuidanceNavigator, IInspectable const&> const& handler) const;
public event TypedEventHandler<GuidanceNavigator,object> UserLocationLost;
function onUserLocationLost(eventArgs) { /* Your code */ }
guidanceNavigator.addEventListener("userlocationlost", onUserLocationLost);
guidanceNavigator.removeEventListener("userlocationlost", onUserLocationLost);
- or -
guidanceNavigator.onuserlocationlost = onUserLocationLost;
Public Custom Event UserLocationLost As TypedEventHandler(Of GuidanceNavigator, Object)
Ereignistyp
TypedEventHandler<GuidanceNavigator,IInspectable>