CreateQueueClient Method (String)
Collapse the table of content
Expand the table of content

MessagingFactory.CreateQueueClient Method (String)

 

Creates a new queue client.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public QueueClient CreateQueueClient(
	string path
)

Parameters

path
Type: System.String

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

Return Value

Type: Microsoft.ServiceBus.Messaging.QueueClient

The newly created queue client.

Exception Condition
ArgumentException

path is null or empty.

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.

OperationCanceledException

The factory has been closed or aborted.

ArgumentOutOfRangeException

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

MessagingException

An internal error or unexpected exception occurs.

Return to top
Show:
© 2016 Microsoft