Share via


MapService.ServiceToken Property

Definition

Gets or sets the application ID and the authentication token required for use of the online mapping services.

public:
 static property Platform::String ^ ServiceToken { Platform::String ^ get(); void set(Platform::String ^ value); };
static winrt::hstring ServiceToken();

static void ServiceToken(winrt::hstring value);
public static string ServiceToken { get; set; }
var string = MapService.serviceToken;
MapService.serviceToken = string;
Public Shared Property ServiceToken As String

Property Value

String

Platform::String

winrt::hstring

The application ID and the authentication token required for use of the online mapping services.

Remarks

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.

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.

Applies to

See also