Aracılığıyla paylaş


MapsRoutingClient Constructors

Definition

Overloads

MapsRoutingClient()

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(AzureKeyCredential)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(AzureSasCredential)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(AzureKeyCredential, MapsRoutingClientOptions)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(AzureSasCredential, MapsRoutingClientOptions)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(TokenCredential, String)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient(TokenCredential, String, MapsRoutingClientOptions)

Initializes a new instance of MapsRoutingClient.

MapsRoutingClient()

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

protected MapsRoutingClient ();
Protected Sub New ()

Applies to

MapsRoutingClient(AzureKeyCredential)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

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

Parameters

credential
AzureKeyCredential

Shared key credential used to authenticate to an Azure Maps Route Service.

Exceptions

credential is null.

Applies to

MapsRoutingClient(AzureSasCredential)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

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

Parameters

credential
AzureSasCredential

The Shared Access Signature credential used to connect to Azure. This signature can be constructed using the AzureSasCredential.

Applies to

MapsRoutingClient(AzureKeyCredential, MapsRoutingClientOptions)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

public MapsRoutingClient (Azure.AzureKeyCredential credential, Azure.Maps.Routing.MapsRoutingClientOptions options);
new Azure.Maps.Routing.MapsRoutingClient : Azure.AzureKeyCredential * Azure.Maps.Routing.MapsRoutingClientOptions -> Azure.Maps.Routing.MapsRoutingClient
Public Sub New (credential As AzureKeyCredential, options As MapsRoutingClientOptions)

Parameters

credential
AzureKeyCredential

Shared key credential used to authenticate to an Azure Maps Route Service.

options
MapsRoutingClientOptions

The options for configuring the client.

Applies to

MapsRoutingClient(AzureSasCredential, MapsRoutingClientOptions)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

public MapsRoutingClient (Azure.AzureSasCredential credential, Azure.Maps.Routing.MapsRoutingClientOptions options);
new Azure.Maps.Routing.MapsRoutingClient : Azure.AzureSasCredential * Azure.Maps.Routing.MapsRoutingClientOptions -> Azure.Maps.Routing.MapsRoutingClient
Public Sub New (credential As AzureSasCredential, options As MapsRoutingClientOptions)

Parameters

credential
AzureSasCredential

The Shared Access Signature credential used to connect to Azure. This signature can be constructed using the AzureSasCredential.

options
MapsRoutingClientOptions

The options for configuring the client.

Applies to

MapsRoutingClient(TokenCredential, String)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

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

Parameters

credential
TokenCredential

A credential used to authenticate to an Azure Maps Route Service.

clientId
String

Specifies which account is intended for usage in conjunction with the Microsoft Entra ID security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Microsoft Entra ID security in Azure Maps see the following articles for guidance.

Exceptions

credential or clientId is null.

Applies to

MapsRoutingClient(TokenCredential, String, MapsRoutingClientOptions)

Source:
MapsRoutingClient.cs

Initializes a new instance of MapsRoutingClient.

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

Parameters

credential
TokenCredential

A credential used to authenticate to an Azure Maps Route Service.

clientId
String

Specifies which account is intended for usage in conjunction with the Microsoft Entra ID security model. It represents a unique ID for the Azure Maps account and can be retrieved from the Azure Maps management plane Account API. To use Microsoft Entra ID security in Azure Maps see the following articles for guidance.

options
MapsRoutingClientOptions

The options for configuring the client.

Exceptions

credential or clientId is null.

Applies to