SALES: 1-800-867-1380

QueueClient.CreateFromConnectionString Method

Creates a new copy of QueueClient from connection string.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member CreateFromConnectionString(String) Creates a new instance of QueueClient using the specified connection string.
Public method Static member CreateFromConnectionString(String, ReceiveMode) Creates a new instance of QueueClient using the specified connection string and receiving mode.
Public method Static member 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 method Static member 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.
Top

The following example shows how to populate the EntityPath property in the connection string.

var connectionStringBuilder = new ServiceBusConnectionStringBuilder(connectionString);
connectionStringBuilder.EntityPath = queueDescription.Path;

var queueClient = QueueClient.CreateFromConnectionString(connectionStringBuilder.ToString());
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft