QueueServiceClient Constructors

Definition

Overloads

QueueServiceClient()

Initializes a new instance of the QueueServiceClient class for mocking.

QueueServiceClient(String)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient(String, QueueClientOptions)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient(Uri, QueueClientOptions)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient(Uri, AzureSasCredential, QueueClientOptions)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient(Uri, TokenCredential, QueueClientOptions)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient(Uri, StorageSharedKeyCredential, QueueClientOptions)

Initializes a new instance of the QueueServiceClient class.

QueueServiceClient()

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class for mocking.

C#
protected QueueServiceClient();

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(String)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(string connectionString);

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, see Configure Azure Storage connection strings.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(String, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(string connectionString, Azure.Storage.Queues.QueueClientOptions options);

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, see Configure Azure Storage connection strings.

options
QueueClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(Uri, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(Uri serviceUri, Azure.Storage.Queues.QueueClientOptions options = default);

Parameters

serviceUri
Uri

A Uri referencing the queue that includes the name of the account, the name of the queue, and a SAS token. This is likely to be similar to "https://{account_name}.queue.core.windows.net/{queue_name}?{sas_token}".

options
QueueClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(Uri, AzureSasCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);

Parameters

serviceUri
Uri

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

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(Uri, TokenCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);

Parameters

serviceUri
Uri

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

credential
TokenCredential

The token credential used to sign requests.

options
QueueClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

QueueServiceClient(Uri, StorageSharedKeyCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

C#
public QueueServiceClient(Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);

Parameters

serviceUri
Uri

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

credential
StorageSharedKeyCredential

The shared key credential used to sign requests.

options
QueueClientOptions

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

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview