QueueClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
QueueClient() |
Initializes a new instance of the QueueClient class for mocking. |
QueueClient(String, String) |
Initializes a new instance of the QueueClient class. |
QueueClient(Uri, QueueClientOptions) |
Initializes a new instance of the QueueClient class. |
QueueClient(String, String, QueueClientOptions) |
Initializes a new instance of the QueueClient class. |
QueueClient(Uri, AzureSasCredential, QueueClientOptions) |
Initializes a new instance of the QueueClient class. |
QueueClient(Uri, TokenCredential, QueueClientOptions) |
Initializes a new instance of the QueueClient class. |
QueueClient(Uri, StorageSharedKeyCredential, QueueClientOptions) |
Initializes a new instance of the QueueClient class. |
QueueClient()
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class for mocking.
protected QueueClient ();
Protected Sub New ()
Applies to
QueueClient(String, String)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (string connectionString, string queueName);
new Azure.Storage.Queues.QueueClient : string * string -> Azure.Storage.Queues.QueueClient
Public Sub New (connectionString As String, queueName 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.
- queueName
- String
The name of the queue in the storage account to reference.
Applies to
QueueClient(Uri, QueueClientOptions)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (Uri queueUri, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueClient : Uri * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueClient
Public Sub New (queueUri As Uri, Optional options As QueueClientOptions = Nothing)
Parameters
- queueUri
- 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
QueueClient(String, String, QueueClientOptions)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (string connectionString, string queueName, Azure.Storage.Queues.QueueClientOptions options);
new Azure.Storage.Queues.QueueClient : string * string * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueClient
Public Sub New (connectionString As String, queueName 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.
- queueName
- String
The name of the queue in the storage account to reference.
- options
- QueueClientOptions
Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.
Applies to
QueueClient(Uri, AzureSasCredential, QueueClientOptions)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (Uri queueUri, Azure.AzureSasCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueClient : Uri * Azure.AzureSasCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueClient
Public Sub New (queueUri As Uri, credential As AzureSasCredential, Optional options As QueueClientOptions = Nothing)
Parameters
- queueUri
- Uri
A Uri referencing the queue that includes the name of the account, and the name of the queue. This is likely to be similar to "https://{account_name}.queue.core.windows.net/{queue_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
- 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
QueueClient(Uri, TokenCredential, QueueClientOptions)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (Uri queueUri, Azure.Core.TokenCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueClient : Uri * Azure.Core.TokenCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueClient
Public Sub New (queueUri As Uri, credential As TokenCredential, Optional options As QueueClientOptions = Nothing)
Parameters
- queueUri
- Uri
A Uri referencing the queue that includes the name of the account, and the name of the queue. This is likely to be similar to "https://{account_name}.queue.core.windows.net/{queue_name}".
- 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
QueueClient(Uri, StorageSharedKeyCredential, QueueClientOptions)
- Source:
- QueueClient.cs
- Source:
- QueueClient.cs
Initializes a new instance of the QueueClient class.
public QueueClient (Uri queueUri, Azure.Storage.StorageSharedKeyCredential credential, Azure.Storage.Queues.QueueClientOptions options = default);
new Azure.Storage.Queues.QueueClient : Uri * Azure.Storage.StorageSharedKeyCredential * Azure.Storage.Queues.QueueClientOptions -> Azure.Storage.Queues.QueueClient
Public Sub New (queueUri As Uri, credential As StorageSharedKeyCredential, Optional options As QueueClientOptions = Nothing)
Parameters
- queueUri
- Uri
A Uri referencing the queue that includes the name of the account, and the name of the queue. This is likely to be similar to "https://{account_name}.queue.core.windows.net/{queue_name}".
- 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.