Udostępnij za pośrednictwem


BlobContainerClient Constructors

Definition

Overloads

BlobContainerClient()

Initializes a new instance of the BlobContainerClient class for mocking.

BlobContainerClient(String, String)

Initializes a new instance of the BlobContainerClient class with Connection string and Blob Container name.

BlobContainerClient(Uri, BlobClientOptions)

Initializes a new instance of the BlobContainerClient class with Blob Container URI and BlobClientOptions.

BlobContainerClient(String, String, BlobClientOptions)

Initializes a new instance of the BlobContainerClient class with Connection string, Blob Container name, and BlobClientOptions.

BlobContainerClient(Uri, AzureSasCredential, BlobClientOptions)

Initializes a new instance of the BlobContainerClient class with Blob Container URI, AzureSasCredential, and BlobClientOptions.

BlobContainerClient(Uri, TokenCredential, BlobClientOptions)

Initializes a new instance of the BlobContainerClient class with Blob Container URI, TokenCredential, and BlobClientOptions.

BlobContainerClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Initializes a new instance of the BlobContainerClient class with Blob Container URI, StorageSharedKeyCredential, and BlobClientOptions.

BlobContainerClient()

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class for mocking.

protected BlobContainerClient ();
Protected Sub New ()

Applies to

BlobContainerClient(String, String)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Connection string and Blob Container name.

public BlobContainerClient (string connectionString, string blobContainerName);
new Azure.Storage.Blobs.BlobContainerClient : string * string -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (connectionString As String, blobContainerName As String)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime.

For more information, Configure Azure Storage connection strings

blobContainerName
String

The name of the blob container in the storage account to reference.

Applies to

BlobContainerClient(Uri, BlobClientOptions)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Blob Container URI and BlobClientOptions.

public BlobContainerClient (Uri blobContainerUri, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobContainerClient : Uri * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (blobContainerUri As Uri, Optional options As BlobClientOptions = Nothing)

Parameters

blobContainerUri
Uri

A Uri referencing the blob container that includes the name of the account and the name of the container. This is likely to be similar to "https://{account_name}.blob.core.windows.net/{container_name}".

options
BlobClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

BlobContainerClient(String, String, BlobClientOptions)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Connection string, Blob Container name, and BlobClientOptions.

public BlobContainerClient (string connectionString, string blobContainerName, Azure.Storage.Blobs.BlobClientOptions options);
new Azure.Storage.Blobs.BlobContainerClient : string * string * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (connectionString As String, blobContainerName As String, options As BlobClientOptions)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime.

For more information, Configure Azure Storage connection strings

blobContainerName
String

The name of the container in the storage account to reference.

options
BlobClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

BlobContainerClient(Uri, AzureSasCredential, BlobClientOptions)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Blob Container URI, AzureSasCredential, and BlobClientOptions.

public BlobContainerClient (Uri blobContainerUri, Azure.AzureSasCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobContainerClient : Uri * Azure.AzureSasCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (blobContainerUri As Uri, credential As AzureSasCredential, Optional options As BlobClientOptions = Nothing)

Parameters

blobContainerUri
Uri

A Uri referencing the blob container that includes the name of the account and the name of the container. This is likely to be similar to "https://{account_name}.blob.core.windows.net/{container_name}". Must not contain shared access signature, which should be passed in the second parameter.

credential
AzureSasCredential

The shared access signature credential used to sign requests.

options
BlobClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Remarks

This constructor should only be used when shared access signature needs to be updated during lifespan of this client.

Applies to

BlobContainerClient(Uri, TokenCredential, BlobClientOptions)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Blob Container URI, TokenCredential, and BlobClientOptions.

public BlobContainerClient (Uri blobContainerUri, Azure.Core.TokenCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobContainerClient : Uri * Azure.Core.TokenCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (blobContainerUri As Uri, credential As TokenCredential, Optional options As BlobClientOptions = Nothing)

Parameters

blobContainerUri
Uri

A Uri referencing the blob container that includes the name of the account and the name of the container. This is likely to be similar to "https://{account_name}.blob.core.windows.net/{container_name}".

credential
TokenCredential

The token credential used to sign requests.

options
BlobClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to

BlobContainerClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Source:
BlobContainerClient.cs
Source:
BlobContainerClient.cs

Initializes a new instance of the BlobContainerClient class with Blob Container URI, StorageSharedKeyCredential, and BlobClientOptions.

public BlobContainerClient (Uri blobContainerUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Blobs.BlobClientOptions options = default);
new Azure.Storage.Blobs.BlobContainerClient : Uri * Azure.Storage.StorageSharedKeyCredential * Azure.Storage.Blobs.BlobClientOptions -> Azure.Storage.Blobs.BlobContainerClient
Public Sub New (blobContainerUri As Uri, credential As StorageSharedKeyCredential, Optional options As BlobClientOptions = Nothing)

Parameters

blobContainerUri
Uri

A Uri referencing the blob container that includes the name of the account and the name of the container. This is likely to be similar to "https://{account_name}.blob.core.windows.net/{container_name}".

credential
StorageSharedKeyCredential

The shared key credential used to sign requests.

options
BlobClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Applies to