SALES: 1-800-867-1380
Expand Minimize
This topic has not yet been rated - Rate this topic

NamespaceManager::UpdateQueue Method

Enables you to update the queue.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public:
QueueDescription^ UpdateQueue(
	QueueDescription^ description
)

Parameters

description
Type: Microsoft.ServiceBus.Messaging::QueueDescription
A QueueDescription object describing the queue to be updated.

Return Value

Type: Microsoft.ServiceBus.Messaging::QueueDescription
The QueueDescription of the updated queue.

You can update the queue based on the value of the EntityStatus enumeration.

QueueDescription qd = namespaceManager.GetQueue("myQ");
qd.Status = EntityStatus.Disabled;
namespaceManager.UpdateQueue(qd);
qd.Status = EntityStatus.Active;
namespaceManager.UpdateQueue(qd);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.