你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BatchServiceClient 类

定义

用于向 Azure Batch 服务发出 REST 请求的客户端。

public class BatchServiceClient : Microsoft.Rest.ServiceClient<Microsoft.Azure.Batch.Protocol.BatchServiceClient>, IDisposable, Microsoft.Azure.Batch.Protocol.IBatchServiceClient, Microsoft.Rest.Azure.IAzureClient
type BatchServiceClient = class
    inherit ServiceClient<BatchServiceClient>
    interface IBatchServiceClient
    interface IDisposable
    interface IAzureClient
Public Class BatchServiceClient
Inherits ServiceClient(Of BatchServiceClient)
Implements IAzureClient, IBatchServiceClient, IDisposable
继承
实现

构造函数

BatchServiceClient()

用于向 Azure Batch 服务发出 REST 请求的客户端。

BatchServiceClient(DelegatingHandler[])

初始化 BatchServiceClient 类的新实例。

BatchServiceClient(HttpClient, Boolean)

初始化 BatchServiceClient 类的新实例。

BatchServiceClient(HttpClientHandler, DelegatingHandler[])

初始化 BatchServiceClient 类的新实例。

BatchServiceClient(ServiceClientCredentials, DelegatingHandler[])

初始化 BatchServiceClient 类的新实例。

BatchServiceClient(ServiceClientCredentials, HttpClient, Boolean)

初始化 BatchServiceClient 类的新实例。

BatchServiceClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[])

初始化 BatchServiceClient 类的新实例。

属性

AcceptLanguage

响应的首选语言。

Account

获取 IAccountOperations。

ApiVersion

客户端 API 版本。

Application

获取 IApplicationOperations。

BatchUrl

所有Azure Batch服务请求的基 URL。

Certificate

获取 ICertificateOperations。

ComputeNode

获取 IComputeNodeOperations。

ComputeNodeExtension

获取 IComputeNodeExtensionOperations。

Credentials

客户端连接到 Azure 所需的凭据。

DeserializationSettings

获取或设置 json 反序列化设置。

File

获取 IFileOperations。

FirstMessageHandler

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
GenerateClientRequestId

是否应生成唯一的 x-ms-client-request-id。 当设置为 true 时,将生成唯一的 x-ms-client-request-id 值并将其包含在每个请求中。 默认为 true。

HttpClient

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
HttpClientHandler

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
HttpMessageHandlers

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
Job

获取 IJobOperations。

JobSchedule

获取 IJobScheduleOperations。

LongRunningOperationRetryTimeout

长时间运行的操作的重试超时(以秒为单位)。 默认值为 30。

Pool

获取 IPoolOperations。

SerializationSettings

获取或设置 json 序列化设置。

Task

获取 ITaskOperations。

UserAgent

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)

方法

CreateHttpHandlerPipeline(HttpClientHandler, DelegatingHandler[])

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
Dispose()

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
Dispose(Boolean)

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
InitializeHttpClient(HttpClient, HttpClientHandler, DelegatingHandler[])

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
InitializeHttpClient(HttpClientHandler, DelegatingHandler[])

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
SetRetryPolicy(RetryPolicy)

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
SetUserAgent(String)

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)
SetUserAgent(String, String)

用于向 Azure Batch 服务发出 REST 请求的客户端。

(继承自 ServiceClient<T>)

扩展方法

GetLongRunningOperationResultAsync(IAzureClient, AzureOperationResponse, Dictionary<String,List<String>>, CancellationToken)

获取长时间运行的操作的操作结果。

GetLongRunningOperationResultAsync<THeader>(IAzureClient, AzureOperationHeaderResponse<THeader>, Dictionary<String,List<String>>, CancellationToken)

获取长时间运行的操作的操作结果。

GetLongRunningOperationResultAsync<TBody>(IAzureClient, AzureOperationResponse<TBody>, Dictionary<String,List<String>>, CancellationToken)

获取长时间运行的操作的操作结果。

GetLongRunningOperationResultAsync<TBody,THeader>(IAzureClient, AzureOperationResponse<TBody,THeader>, Dictionary<String,List<String>>, CancellationToken)

获取长时间运行的操作的操作结果。

GetPostOrDeleteOperationResultAsync(IAzureClient, AzureOperationResponse, Dictionary<String,List<String>>, CancellationToken)

获取 DELETE 和 POST 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPostOrDeleteOperationResultAsync<THeader>(IAzureClient, AzureOperationHeaderResponse<THeader>, Dictionary<String,List<String>>, CancellationToken)

获取 DELETE 和 POST 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPostOrDeleteOperationResultAsync<TBody>(IAzureClient, AzureOperationResponse<TBody>, Dictionary<String,List<String>>, CancellationToken)

获取 DELETE 和 POST 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPostOrDeleteOperationResultAsync<TBody,THeader>(IAzureClient, AzureOperationResponse<TBody,THeader>, Dictionary<String,List<String>>, CancellationToken)

获取 DELETE 和 POST 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPutOrPatchOperationResultAsync(IAzureClient, AzureOperationResponse, Dictionary<String,List<String>>, CancellationToken)

获取 PUT 和 PATCH 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPutOrPatchOperationResultAsync<TBody>(IAzureClient, AzureOperationResponse<TBody>, Dictionary<String,List<String>>, CancellationToken)

获取 PUT 和 PATCH 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

GetPutOrPatchOperationResultAsync<TBody,THeader>(IAzureClient, AzureOperationResponse<TBody,THeader>, Dictionary<String,List<String>>, CancellationToken)

获取 PUT 和 PATCH 操作的操作结果。 (弃用,请使用 GetLongRunningOperationResultAsync)

适用于