你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BatchClient Constructors
Definition
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
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.