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

MapsGeolocationClient 构造函数

定义

重载

MapsGeolocationClient()

初始化 GeolocationClient 的新实例。

MapsGeolocationClient(AzureKeyCredential)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureSasCredential)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureKeyCredential, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(AzureSasCredential, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(TokenCredential, String)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient(TokenCredential, String, MapsGeolocationClientOptions)

初始化 MapsGeolocationClient 的新实例。

MapsGeolocationClient()

Source:
MapsGeolocationClient.cs

初始化 GeolocationClient 的新实例。

protected MapsGeolocationClient ();
Protected Sub New ()

适用于

MapsGeolocationClient(AzureKeyCredential)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.AzureKeyCredential credential);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.AzureKeyCredential -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As AzureKeyCredential)

参数

credential
AzureKeyCredential

用于向Azure Maps地理位置服务进行身份验证的共享密钥凭据。

例外

credential 为 null。

适用于

MapsGeolocationClient(AzureSasCredential)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.AzureSasCredential credential);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.AzureSasCredential -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As AzureSasCredential)

参数

credential
AzureSasCredential

用于连接到 Azure 的共享访问签名凭据。 可以使用 构造 AzureSasCredential此签名。

适用于

MapsGeolocationClient(AzureKeyCredential, MapsGeolocationClientOptions)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.AzureKeyCredential credential, Azure.Maps.Geolocation.MapsGeolocationClientOptions options);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.AzureKeyCredential * Azure.Maps.Geolocation.MapsGeolocationClientOptions -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As AzureKeyCredential, options As MapsGeolocationClientOptions)

参数

credential
AzureKeyCredential

用于向Azure Maps地理位置服务进行身份验证的共享密钥凭据。

options
MapsGeolocationClientOptions

用于配置客户端的选项。

适用于

MapsGeolocationClient(AzureSasCredential, MapsGeolocationClientOptions)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.AzureSasCredential credential, Azure.Maps.Geolocation.MapsGeolocationClientOptions options);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.AzureSasCredential * Azure.Maps.Geolocation.MapsGeolocationClientOptions -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As AzureSasCredential, options As MapsGeolocationClientOptions)

参数

credential
AzureSasCredential

用于连接到 Azure 的共享访问签名凭据。 可以使用 构造 AzureSasCredential此签名。

options
MapsGeolocationClientOptions

用于配置客户端的选项。

适用于

MapsGeolocationClient(TokenCredential, String)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.Core.TokenCredential credential, string clientId);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.Core.TokenCredential * string -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As TokenCredential, clientId As String)

参数

credential
TokenCredential

用于向Azure Maps地理位置服务进行身份验证的凭据。

clientId
String

指定用于与 Azure AD 安全模型结合使用的帐户。 它表示Azure Maps帐户的唯一 ID,可从Azure Maps管理平面帐户 API 检索。 若要在 Azure Maps中使用 Azure AD 安全性,请参阅以下文章以获取指导。

例外

credentialclientId 为 null。

适用于

MapsGeolocationClient(TokenCredential, String, MapsGeolocationClientOptions)

Source:
MapsGeolocationClient.cs

初始化 MapsGeolocationClient 的新实例。

public MapsGeolocationClient (Azure.Core.TokenCredential credential, string clientId, Azure.Maps.Geolocation.MapsGeolocationClientOptions options);
new Azure.Maps.Geolocation.MapsGeolocationClient : Azure.Core.TokenCredential * string * Azure.Maps.Geolocation.MapsGeolocationClientOptions -> Azure.Maps.Geolocation.MapsGeolocationClient
Public Sub New (credential As TokenCredential, clientId As String, options As MapsGeolocationClientOptions)

参数

credential
TokenCredential

用于向Azure Maps地理位置服务进行身份验证的凭据。

clientId
String

指定用于与 Azure AD 安全模型结合使用的帐户。 它表示Azure Maps帐户的唯一 ID,可从Azure Maps管理平面帐户 API 检索。 若要在 Azure Maps中使用 Azure AD 安全性,请参阅以下文章以获取指导。

options
MapsGeolocationClientOptions

用于配置客户端的选项。

例外

credentialclientId 为 null。

适用于