Langage

MapControl.MapServiceToken Propriété

Définition

Obtient ou définit la clé d’authentification requise pour l’utilisation des services mapControl et de mappage en ligne.

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

void MapServiceToken(winrt::hstring value);
public string MapServiceToken { get; set; }
var string = mapControl.mapServiceToken;
mapControl.mapServiceToken = string;
Public Property MapServiceToken As String

Valeur de propriété

String

Platform::String

winrt::hstring

Clé d’authentification requise pour l’utilisation des services mapControl et de mappage en ligne. La valeur par défaut est une chaîne vide.

Remarques

Consultez Gérer votre compte Azure Maps pour plus d’informations sur l’obtention d’une clé partagée pour l’authentification.

Un jeton non valide empêche l’authentification avec Azure Maps service. MapControl génère une erreur de service de carte et affiche uniquement un arrière-plan bleu.

S’applique à