你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MapsGeolocationClient 类

定义

地理位置服务客户端。

public class MapsGeolocationClient
type MapsGeolocationClient = class
Public Class MapsGeolocationClient
继承
MapsGeolocationClient

构造函数

MapsGeolocationClient()

初始化 GeolocationClient 的新实例。

MapsGeolocationClient(AzureKeyCredential)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureKeyCredential, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureSasCredential)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureSasCredential, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(TokenCredential, String)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(TokenCredential, String, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

方法

GetCountryCode(IPAddress, CancellationToken)

此服务将返回提供的 IP 地址的 ISO 国家/地区代码。 开发人员可以使用此信息根据查看应用程序的地理位置来阻止或更改某些内容。

GetCountryCodeAsync(IPAddress, CancellationToken)

此服务将返回提供的 IP 地址的 ISO 国家/地区代码。 开发人员可以使用此信息根据查看应用程序的地理位置来阻止或更改某些内容。

适用于