Delen via


MapsSearchClient Constructors

Definition

Overloads

MapsSearchClient()

Initializes a new instance of MapsSearchClient.

MapsSearchClient(AzureKeyCredential)

Initializes a new instance of MapsSearchClient.

MapsSearchClient(AzureSasCredential)

Initializes a new instance of MapsSearchClient.

MapsSearchClient(AzureKeyCredential, MapsSearchClientOptions)

Initializes a new instance of MapsSearchClient.

MapsSearchClient(AzureSasCredential, MapsSearchClientOptions)

Initializes a new instance of MapsSearchClient.

MapsSearchClient(TokenCredential, String)

Initializes a new instance of MapsSearchClient.

MapsSearchClient(TokenCredential, String, MapsSearchClientOptions)

Initializes a new instance of MapsSearchClient.

MapsSearchClient()

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

protected MapsSearchClient ();
Protected Sub New ()

Applies to

MapsSearchClient(AzureKeyCredential)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

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

Parameters

credential
AzureKeyCredential

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

Exceptions

credential is null.

Applies to

MapsSearchClient(AzureSasCredential)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

public MapsSearchClient (Azure.AzureSasCredential credential);
new Azure.Maps.Search.MapsSearchClient : Azure.AzureSasCredential -> Azure.Maps.Search.MapsSearchClient
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.

Exceptions

credential is null.

Applies to

MapsSearchClient(AzureKeyCredential, MapsSearchClientOptions)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

public MapsSearchClient (Azure.AzureKeyCredential credential, Azure.Maps.Search.MapsSearchClientOptions options);
new Azure.Maps.Search.MapsSearchClient : Azure.AzureKeyCredential * Azure.Maps.Search.MapsSearchClientOptions -> Azure.Maps.Search.MapsSearchClient
Public Sub New (credential As AzureKeyCredential, options As MapsSearchClientOptions)

Parameters

credential
AzureKeyCredential

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

options
MapsSearchClientOptions

The options for configuring the client.

Exceptions

credential is null.

Applies to

MapsSearchClient(AzureSasCredential, MapsSearchClientOptions)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

public MapsSearchClient (Azure.AzureSasCredential credential, Azure.Maps.Search.MapsSearchClientOptions options);
new Azure.Maps.Search.MapsSearchClient : Azure.AzureSasCredential * Azure.Maps.Search.MapsSearchClientOptions -> Azure.Maps.Search.MapsSearchClient
Public Sub New (credential As AzureSasCredential, options As MapsSearchClientOptions)

Parameters

credential
AzureSasCredential

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

options
MapsSearchClientOptions

The options for configuring the client.

Exceptions

credential is null.

Applies to

MapsSearchClient(TokenCredential, String)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

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

Parameters

credential
TokenCredential

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

clientId
String

Specifies which account is intended for usage in conjunction with the Azure AD 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 Azure AD security in Azure Maps see the following articles for guidance.

Exceptions

credential or clientId is null.

Applies to

MapsSearchClient(TokenCredential, String, MapsSearchClientOptions)

Source:
MapsSearchClient.cs

Initializes a new instance of MapsSearchClient.

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

Parameters

credential
TokenCredential

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

clientId
String

Specifies which account is intended for usage in conjunction with the Azure AD 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 Azure AD security in Azure Maps see the following articles for guidance.

options
MapsSearchClientOptions

The options for configuring the client.

Exceptions

credential or clientId is null.

Applies to