Share via


BlobServiceClient Constructors

Definition

Overloads

BlobServiceClient()

Initializes a new instance of the BlobServiceClient class for mocking.

BlobServiceClient(String)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient(String, BlobClientOptions)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient(Uri, BlobClientOptions)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient(Uri, AzureSasCredential, BlobClientOptions)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient(Uri, TokenCredential, BlobClientOptions)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Initializes a new instance of the BlobServiceClient class.

BlobServiceClient()

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class for mocking.

protected BlobServiceClient ();
Protected Sub New ()

Applies to

BlobServiceClient(String)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

public BlobServiceClient (string connectionString);
new Azure.Storage.Blobs.BlobServiceClient : string -> Azure.Storage.Blobs.BlobServiceClient
Public Sub New (connectionString 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.

Applies to

BlobServiceClient(String, BlobClientOptions)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

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)

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.

options
BlobClientOptions

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

Applies to

BlobServiceClient(Uri, BlobClientOptions)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

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)

Parameters

serviceUri
Uri

A Uri referencing the blob service. This is likely to be similar to "https://{account_name}.blob.core.windows.net".

options
BlobClientOptions

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

Applies to

BlobServiceClient(Uri, AzureSasCredential, BlobClientOptions)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

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)

Parameters

serviceUri
Uri

A Uri referencing the blob service. This is likely to be similar to "https://{account_name}.blob.core.windows.net". 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

BlobServiceClient(Uri, TokenCredential, BlobClientOptions)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

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)

Parameters

serviceUri
Uri

A Uri referencing the blob service. This is likely to be similar to "https://{account_name}.blob.core.windows.net".

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

BlobServiceClient(Uri, StorageSharedKeyCredential, BlobClientOptions)

Source:
BlobServiceClient.cs
Source:
BlobServiceClient.cs

Initializes a new instance of the BlobServiceClient class.

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)

Parameters

serviceUri
Uri

A Uri referencing the blob service. This is likely to be similar to "https://{account_name}.blob.core.windows.net".

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