你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobServiceClient 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
BlobServiceClient()
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 类的新实例 BlobServiceClient 进行模拟。
protected BlobServiceClient ();
Protected Sub New ()
适用于
BlobServiceClient(String)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (string connectionString);
new Azure.Storage.Blobs.BlobServiceClient : string -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (connectionString As String)
参数
适用于
BlobServiceClient(String, BlobClientOptions)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (string connectionString, Azure.Storage.Blobs.BlobClientOptions options);
new Azure.Storage.Blobs.BlobServiceClient : string * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (connectionString As String, options As BlobClientOptions)
参数
- options
- BlobClientOptions
用于定义适用于每个请求的身份验证、重试等传输管道策略的可选客户端选项。
适用于
BlobServiceClient(Uri, BlobClientOptions)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (Uri serviceUri, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobServiceClient : Uri * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (serviceUri As Uri, Optional options As BlobClientOptions = Nothing)
参数
- options
- BlobClientOptions
用于定义适用于每个请求的身份验证、重试等传输管道策略的可选客户端选项。
适用于
BlobServiceClient(Uri, AzureSasCredential, BlobClientOptions)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobServiceClient : Uri * Azure.AzureSasCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (serviceUri As Uri, credential As AzureSasCredential, Optional options As BlobClientOptions = Nothing)
参数
- serviceUri
- Uri
Uri引用 Blob 服务的 。 这可能类似于“https://{account_name}.blob.core.windows.net”。 不得包含应在第二个参数中传递的共享访问签名。
- credential
- AzureSasCredential
用于对请求进行签名的共享访问签名凭据。
- options
- BlobClientOptions
用于定义适用于每个请求的身份验证、重试等传输管道策略的可选客户端选项。
注解
仅当需要在此客户端的生命周期内更新共享访问签名时,才应使用此构造函数。
适用于
BlobServiceClient(Uri, TokenCredential, BlobClientOptions)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobServiceClient : Uri * Azure.Core.TokenCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (serviceUri As Uri, credential As TokenCredential, Optional options As BlobClientOptions = Nothing)
参数
- credential
- TokenCredential
用于对请求进行签名的令牌凭据。
- options
- BlobClientOptions
用于定义适用于每个请求的身份验证、重试等传输管道策略的可选客户端选项。
适用于
BlobServiceClient(Uri, StorageSharedKeyCredential, BlobClientOptions)
- Source:
- BlobServiceClient.cs
- Source:
- BlobServiceClient.cs
初始化 BlobServiceClient 类的新实例。
public BlobServiceClient (Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobServiceClient : Uri * Azure.Storage.StorageSharedKeyCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (serviceUri As Uri, credential As StorageSharedKeyCredential, Optional options As BlobClientOptions = Nothing)
参数
- credential
- StorageSharedKeyCredential
用于对请求进行签名的共享密钥凭据。
- options
- BlobClientOptions
用于定义适用于每个请求的身份验证、重试等传输管道策略的可选客户端选项。