MapControlDataHelper.BusinessLandmarkClick イベント

定義

ユーザーがビジネスの場所をタップするか、マウスの左ボタンでクリックしたときに発生します。 MapControlBusinessLandmarkClickEventArgs のインスタンスは、このイベントのデータを提供します。

注意

この API は、すべての Windows アプリで使用できるわけではありません。 開発者アカウントが Microsoft によって特別にプロビジョニングされていない限り、この API の呼び出しは実行時に失敗します。 この API と Windows.Services.Maps.LocalSearch 名前空間の詳細については、Microsoft アカウント チームの担当者にお問い合わせください。

// Register
event_token BusinessLandmarkClick(TypedEventHandler<MapControl, MapControlBusinessLandmarkClickEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControlDataHelper::BusinessLandmarkClick_revoker BusinessLandmarkClick(auto_revoke_t, TypedEventHandler<MapControl, MapControlBusinessLandmarkClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlBusinessLandmarkClickEventArgs> BusinessLandmarkClick;
function onBusinessLandmarkClick(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("businesslandmarkclick", onBusinessLandmarkClick);
mapControlDataHelper.removeEventListener("businesslandmarkclick", onBusinessLandmarkClick);
- or -
mapControlDataHelper.onbusinesslandmarkclick = onBusinessLandmarkClick;
Public Custom Event BusinessLandmarkClick As TypedEventHandler(Of MapControl, MapControlBusinessLandmarkClickEventArgs) 

イベントの種類

適用対象