Partilhar via


BatchClient Constructors

Definition

Overloads

BatchClient()

Initializes a new instance of BatchClient for mocking.

BatchClient(Uri, AzureNamedKeyCredential)

Initializes a new instance of BatchClient.

BatchClient(Uri, TokenCredential)

Initializes a new instance of BatchClient.

BatchClient(Uri, AzureNamedKeyCredential, BatchClientOptions)

Initializes a new instance of BatchClient.

BatchClient(Uri, TokenCredential, BatchClientOptions)

Initializes a new instance of BatchClient.

BatchClient()

Source:
BatchClient.cs

Initializes a new instance of BatchClient for mocking.

protected BatchClient ();
Protected Sub New ()

Applies to

BatchClient(Uri, AzureNamedKeyCredential)

Source:
BatchClientCustom.cs

Initializes a new instance of BatchClient.

public BatchClient (Uri endpoint, Azure.AzureNamedKeyCredential credential);
new Azure.Compute.Batch.BatchClient : Uri * Azure.AzureNamedKeyCredential -> Azure.Compute.Batch.BatchClient
Public Sub New (endpoint As Uri, credential As AzureNamedKeyCredential)

Parameters

endpoint
Uri

Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com).

credential
AzureNamedKeyCredential

A credential used to authenticate to an Azure Service.

Exceptions

credential is null.

Applies to

BatchClient(Uri, TokenCredential)

Source:
BatchClient.cs

Initializes a new instance of BatchClient.

public BatchClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Compute.Batch.BatchClient : Uri * Azure.Core.TokenCredential -> Azure.Compute.Batch.BatchClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

BatchClient(Uri, AzureNamedKeyCredential, BatchClientOptions)

Source:
BatchClientCustom.cs

Initializes a new instance of BatchClient.

public BatchClient (Uri endpoint, Azure.AzureNamedKeyCredential credential, Azure.Compute.Batch.BatchClientOptions options);
new Azure.Compute.Batch.BatchClient : Uri * Azure.AzureNamedKeyCredential * Azure.Compute.Batch.BatchClientOptions -> Azure.Compute.Batch.BatchClient
Public Sub New (endpoint As Uri, credential As AzureNamedKeyCredential, options As BatchClientOptions)

Parameters

endpoint
Uri

Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com).

credential
AzureNamedKeyCredential

A credential used to authenticate to an Azure Service.

options
BatchClientOptions

The options for configuring the client.

Exceptions

credential is null.

Applies to

BatchClient(Uri, TokenCredential, BatchClientOptions)

Source:
BatchClient.cs

Initializes a new instance of BatchClient.

public BatchClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Compute.Batch.BatchClientOptions options);
new Azure.Compute.Batch.BatchClient : Uri * Azure.Core.TokenCredential * Azure.Compute.Batch.BatchClientOptions -> Azure.Compute.Batch.BatchClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As BatchClientOptions)

Parameters

endpoint
Uri

Batch account endpoint (for example: https://batchaccount.eastus2.batch.azure.com).

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
BatchClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to