Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BatchClient Constructors

Definition

Namespace:
Azure.Compute.Batch
Assembly:
Azure.Compute.Batch.dll
Package:
Azure.Compute.Batch v1.0.0
Package:
Azure.Compute.Batch v1.0.0-beta.5

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
BatchClient()

Initializes a new instance of BatchClient for mocking.

BatchClient(BatchClientSettings)

Initializes a new instance of BatchClient from a BatchClientSettings.

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
Source:
BatchClient.cs

Initializes a new instance of BatchClient for mocking.

protected BatchClient();
Protected Sub New ()

Applies to

BatchClient(BatchClientSettings)

Source:
BatchClient.cs

Initializes a new instance of BatchClient from a BatchClientSettings.

public BatchClient(Azure.Compute.Batch.BatchClientSettings settings);
new Azure.Compute.Batch.BatchClient : Azure.Compute.Batch.BatchClientSettings -> Azure.Compute.Batch.BatchClient
Public Sub New (settings As BatchClientSettings)

Parameters

settings
BatchClientSettings

The settings for BatchClient.

Applies to

BatchClient(Uri, AzureNamedKeyCredential)

Source:
BatchClientCustom.cs
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
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

Service endpoint.

credential
TokenCredential

A credential used to authenticate to the service.

Exceptions

endpoint or credential is null.

Applies to

BatchClient(Uri, AzureNamedKeyCredential, BatchClientOptions)

Source:
BatchClientCustom.cs
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:
BatchClientCustom.cs
Source:
BatchClientCustom.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


Feedback

Was this page helpful?