你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MapsGeolocationClient 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
地理位置服务客户端。
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 国家/地区代码。 开发人员可以使用此信息根据查看应用程序的地理位置来阻止或更改某些内容。 |