Share via


MapLocation Class

Definition

[Deprecated - see Remarks.] Represents a geographic ___location.

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
Inheritance
Object Platform::Object IInspectable MapLocation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Important

The UWP MapControl and Windows Maps platform APIs (Windows.Services.Maps.*) are deprecated and may not be available in future versions of Windows. For more information, see Resources for deprecated features.

Important

Bing Maps for Enterprise service retirement

The UWP MapControl and map services from the Windows.Services.Maps namespaces rely on Bing Maps. Bing Maps for Enterprise is deprecated and will be retired, at which point the MapControl and services will no longer receive data.

For more information, see the Bing Maps Developer Center and Bing Maps documentation.

A collection of MapLocation objects is returned through the Locations property of the MapLocationFinderResult when you call the methods of the MapLocationFinder class.

Your app must be authenticated before it can use the MapControl and map services in the Windows.Services.Maps namespace. To authenticate your app, you must specify a maps authentication key.

See Request a maps authentication key.

Properties

Address

Gets the address of a geographic ___location.

Description

Gets the description of a geographic ___location.

DisplayName

Gets the display name of a geographic ___location.

Point

Gets the coordinates of a geographic ___location.

Applies to

See also