Share via


MapControl.MapServiceToken 屬性

定義

取得或設定使用 MapControl 和在線對應服務所需的驗證密鑰。

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

屬性值

String

Platform::String

winrt::hstring

使用 MapControl 和在線對應服務所需的驗證金鑰。 預設為空字串。

備註

如需如何取得共用金鑰以進行驗證的資訊,請參閱管理您的 Azure 地圖服務 帳戶

無效的令牌會防止使用 Azure 地圖服務 服務進行驗證。 MapControl 會引發地圖服務錯誤,並只顯示藍色背景。

適用於