MessagingFactory.CreateQueueClient Method (String, ReceiveMode)
Creates a new queue client.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Parameters
- path
- Type: System.String
The path of the queue relative to the service namespace base address.
- receiveMode
- Type: Microsoft.ServiceBus.Messaging.ReceiveMode
The receive mode.
| Exception | Condition |
|---|---|
| ArgumentException | path is null or empty. |
| ArgumentOutOfRangeException | path length is greater than TopicNameMaximumLength(). |
| TimeoutException | 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. |
| MessagingException | An internal error or unexpected exception occurs. |
| OperationCanceledException | The factory has been closed or aborted. |