MessagingFactory.CreateQueueClient Method

Definition

Overloads

CreateQueueClient(String)

Creates a new queue client.

CreateQueueClient(String, ReceiveMode)

Creates a new queue client.

CreateQueueClient(String)

Creates a new queue client.

public Microsoft.ServiceBus.Messaging.QueueClient CreateQueueClient (string path);
Parameters
path
String

The path of the queue relative to the service namespace base address.

Returns

The newly created queue client.

Exceptions

path is null or empty.

path length is greater than Microsoft.ServiceBus.Messaging.Constants.TopicNameMaximumLength.

The operation times out. The timeout period is initialized through the MessagingFactorySettings object. You may need to increase the value of OperationTimeout to avoid this exception if the timeout value is relatively low.

An internal error or unexpected exception occurs.

The factory has been closed or aborted.

CreateQueueClient(String, ReceiveMode)

Creates a new queue client.

public Microsoft.ServiceBus.Messaging.QueueClient CreateQueueClient (string path, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode);
Parameters
path
String

The path of the queue relative to the service namespace base address.

receiveMode
ReceiveMode

The receive mode.

Returns

The newly created queue client.

Exceptions

path is null or empty.

path length is greater than Microsoft.ServiceBus.Messaging.Constants.TopicNameMaximumLength.

The operation times out. The timeout period is initialized through the MessagingFactorySettings object. You may need to increase the value of OperationTimeout to avoid this exception if the timeout value is relatively low.

An internal error or unexpected exception occurs.

The factory has been closed or aborted.