Share via


MapControlDataHelper.BusinessLandmarkRightTapped 事件

定義

當使用者按下並按住商務位置,或使用滑鼠右鍵按一下時發生。 MapControlBusinessLandmarkRightTappedEventArgs的實例會提供此事件的資料。

注意

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

// Register
event_token BusinessLandmarkRightTapped(TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControlDataHelper::BusinessLandmarkRightTapped_revoker BusinessLandmarkRightTapped(auto_revoke_t, TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlBusinessLandmarkRightTappedEventArgs> BusinessLandmarkRightTapped;
function onBusinessLandmarkRightTapped(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
mapControlDataHelper.removeEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
- or -
mapControlDataHelper.onbusinesslandmarkrighttapped = onBusinessLandmarkRightTapped;
Public Custom Event BusinessLandmarkRightTapped As TypedEventHandler(Of MapControl, MapControlBusinessLandmarkRightTappedEventArgs) 

事件類型

適用於