Share via


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.

protected QueueServiceClient ();
Protected Sub New ()

Applies to

QueueServiceClient(String)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (string connectionString);
new Azure.Storage.Queues.QueueServiceClient : string -> Azure.Storage.Queues.QueueServiceClient
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, see Configure Azure Storage connection strings.

Applies to

QueueServiceClient(String, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (string connectionString, Azure.Storage.Queues.QueueClientOptions options);
new Azure.Storage.Queues.QueueServiceClient : string * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueServiceClient
Public Sub New (connectionString As String, options As QueueClientOptions)

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

QueueServiceClient(Uri, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (Uri serviceUri, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueServiceClient : Uri * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueServiceClient
Public Sub New (serviceUri As Uri, Optional options As QueueClientOptions = Nothing)

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

QueueServiceClient(Uri, AzureSasCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (Uri serviceUri, Azure.AzureSasCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueServiceClient : Uri * Azure.AzureSasCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueServiceClient
Public Sub New (serviceUri As Uri, credential As AzureSasCredential, Optional options As QueueClientOptions = Nothing)

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

QueueServiceClient(Uri, TokenCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (Uri serviceUri, Azure.Core.TokenCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueServiceClient : Uri * Azure.Core.TokenCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueServiceClient
Public Sub New (serviceUri As Uri, credential As TokenCredential, Optional options As QueueClientOptions = Nothing)

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

QueueServiceClient(Uri, StorageSharedKeyCredential, QueueClientOptions)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

Initializes a new instance of the QueueServiceClient class.

public QueueServiceClient (Uri serviceUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueServiceClient : Uri * Azure.Storage.StorageSharedKeyCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueServiceClient
Public Sub New (serviceUri As Uri, credential As StorageSharedKeyCredential, Optional options As QueueClientOptions = Nothing)

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