SALES: 1-800-867-1380
Expand Minimize

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);
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft