您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessagingFactory.CreateQueueClient MessagingFactory.CreateQueueClient MessagingFactory.CreateQueueClient Method

Definition

Overloads

CreateQueueClient(String) CreateQueueClient(String) CreateQueueClient(String)

Creates a new queue client.

CreateQueueClient(String, ReceiveMode) CreateQueueClient(String, ReceiveMode)

Creates a new queue client.

CreateQueueClient(String) CreateQueueClient(String) CreateQueueClient(String)

Creates a new queue client.

public Microsoft.ServiceBus.Messaging.QueueClient CreateQueueClient (string path);
member this.CreateQueueClient : string -> Microsoft.ServiceBus.Messaging.QueueClient
Public Function CreateQueueClient (path As String) As QueueClient

Parameters

path
String String String

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

Returns

The newly created queue client.

Exceptions

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.

CreateQueueClient(String, ReceiveMode) CreateQueueClient(String, ReceiveMode)

Creates a new queue client.

public Microsoft.ServiceBus.Messaging.QueueClient CreateQueueClient (string path, Microsoft.ServiceBus.Messaging.ReceiveMode receiveMode);
member this.CreateQueueClient : string * Microsoft.ServiceBus.Messaging.ReceiveMode -> Microsoft.ServiceBus.Messaging.QueueClient

Parameters

path
String String String

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

receiveMode
ReceiveMode ReceiveMode ReceiveMode

The receive mode.

Returns

The newly created queue client.

Exceptions

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.

Applies to