SALES: 1-800-867-1380
Collapse the table of content
Expand the table of content
Expand Minimize

NamespaceManager.UpdateQueue Method (QueueDescription)

 

Enables you to update the queue.

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

No code example is currently available or this language may not be supported.

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);
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft