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

BlobServiceClient.CreateClient 方法

定义

用于 DataLake 创建后备 Blob 客户端。

初始化 BlobServiceClient 类的新实例。

protected static Azure.Storage.Blobs.BlobServiceClient CreateClient (Uri serviceUri, Azure.Storage.Blobs.BlobClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy authentication, Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Storage.StorageSharedKeyCredential sharedKeyCredential, Azure.AzureSasCredential sasCredential, Azure.Core.TokenCredential tokenCredential);
static member CreateClient : Uri * Azure.Storage.Blobs.BlobClientOptions * Azure.Core.Pipeline.HttpPipelinePolicy * Azure.Core.Pipeline.HttpPipeline * Azure.Storage.StorageSharedKeyCredential * Azure.AzureSasCredential * Azure.Core.TokenCredential -> Azure.Storage.Blobs.BlobServiceClient
Protected Shared Function CreateClient (serviceUri As Uri, options As BlobClientOptions, authentication As HttpPipelinePolicy, pipeline As HttpPipeline, sharedKeyCredential As StorageSharedKeyCredential, sasCredential As AzureSasCredential, tokenCredential As TokenCredential) As BlobServiceClient

参数

serviceUri
Uri

引用 Uri 块 Blob 的 ,其中包含帐户名称、容器名称和 Blob 的名称。

options
BlobClientOptions

可选的客户端选项,用于定义应用于每个请求的身份验证、重试等的传输管道策略。

authentication
HttpPipelinePolicy

用于对请求进行签名的可选身份验证策略。

pipeline
HttpPipeline

用于发送每个请求的传输管道。

sharedKeyCredential
StorageSharedKeyCredential

用于对请求进行签名的共享密钥凭据。

sasCredential
AzureSasCredential

用于对请求进行签名的 SAS 凭据。

tokenCredential
TokenCredential

用于对请求进行签名的令牌凭据。

返回

类的新实例 BlobServiceClient

适用于