Language

MapLocation クラス

定義

地理的な場所を表します。

public ref class MapLocation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapLocation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapLocation
Public NotInheritable Class MapLocation
継承
Object Platform::Object IInspectable MapLocation
属性

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

MapLocationFinder クラスのメソッドを呼び出すと、MapLocationFinderResult の Locations プロパティを介して MapLocation オブジェクト のコレクションが返されます。

大事な

Bing Maps for Enterprise サービス提供終了

Windows.Services.Maps 名前空間からの UWP MapControl およびマップ サービスは、Bing Maps に依存します。 Bing Maps for Enterprise は非推奨となり、廃止されます。その時点で、MapControl とサービスはデータを受信しなくなります。

詳細については、Bing Maps デベロッパー センターの と Bing Maps のドキュメントを参照してください。

Windows.Services.Maps 名前空間で MapControl とマップ サービスを使用するには、アプリを認証する必要があります。 アプリを認証するには、マップ認証キーを指定する必要があります。

「マップ認証キーを要求する」を参照してください。

プロパティ

Address

地理的な場所のアドレスを取得します。

Description

地理的な場所の説明を取得します。

DisplayName

地理的な場所の表示名を取得します。

Point

地理的位置の座標を取得します。

適用対象

こちらもご覧ください