QueueClient.CreateFromConnectionString Method

Definition

Overloads

CreateFromConnectionString(String, String, ReceiveMode)

Creates a new instance of QueueClient from a connection string with the specified path and mode. Use this overload only when the connection string does not use the EntityPath property.

CreateFromConnectionString(String)

Creates a new instance of QueueClient using the specified connection string.

CreateFromConnectionString(String, ReceiveMode)

Creates a new instance of QueueClient using the specified connection string and receiving mode.

CreateFromConnectionString(String, String)

Creates a new copy of QueueClient from a connection string with the specified queue path. Use this overload only when the connection string does not use the EntityPath property.

CreateFromConnectionString(String, String, ReceiveMode)

Creates a new instance of QueueClient from a connection string with the specified path and mode. Use this overload only when the connection string does not use the EntityPath property.

public static Microsoft.ServiceBus.Messaging.QueueClient CreateFromConnectionString (string connectionString, string path, Microsoft.ServiceBus.Messaging.ReceiveMode mode);
Parameters
connectionString
String

The connection string.

path
String

The path to the queue.

Returns

The created QueueClient.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Remarks

This method should only be used with a connection string that has namespace level authentication because the connection string supplied should not have entity level information associated with it.

CreateFromConnectionString(String)

Creates a new instance of QueueClient using the specified connection string.

public static Microsoft.ServiceBus.Messaging.QueueClient CreateFromConnectionString (string connectionString);
Parameters
connectionString
String

The connection string to use.

Returns

The newly created QueueClient instance.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Remarks

This method expects the connection string supplied has entity level information such as the entity path and authentication information supplied.

CreateFromConnectionString(String, ReceiveMode)

Creates a new instance of QueueClient using the specified connection string and receiving mode.

public static Microsoft.ServiceBus.Messaging.QueueClient CreateFromConnectionString (string connectionString, Microsoft.ServiceBus.Messaging.ReceiveMode mode);
Parameters
connectionString
String

The connection string to use.

Returns

The newly created QueueClient instance.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Remarks

This method expects the connection string supplied has entity level information such as the entity path and authentication information supplied.

CreateFromConnectionString(String, String)

Creates a new copy of QueueClient from a connection string with the specified queue path. Use this overload only when the connection string does not use the EntityPath property.

public static Microsoft.ServiceBus.Messaging.QueueClient CreateFromConnectionString (string connectionString, string path);
Parameters
connectionString
String

The connection string used.

path
String

The path to the queue.

Returns

The created QueueClient.

Exceptions

Thrown when the format of the connectionString parameter is incorrect.

Remarks

This method should only be used with a connection string that has namespace level authentication because the connection string supplied should not have entity level information associated with it.