EntityStatus Enumeration
Enumerates the possible values for the status of a messaging entity.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
| Member name | Description | |
|---|---|---|
| Active | The status of the messaging entity is active. | |
| Disabled | The status of the messaging entity is disabled. | |
| ReceiveDisabled | The receiving status of the messaging entity is disabled. If you issue a receive or complete request to a queue or subscription that has a status of ReceiveDisabled, Service Bus returns a MessagingEntityDisabledException with the detailed message “Receiving from {queue|subscription} is disabled.” | |
| Restoring | Resuming the previous status of the messaging entity. | |
| SendDisabled | The sending status of the messaging entity is disabled. If you send a message to a queue or topic that has a status of SendDisabled, Service Bus returns a MessagingEntityDisabledException exception with the detailed message “Sending to {queue|topic} is disabled.” |
Set this value before a call to update the status of the messaging entity.
The behavior of a disabled entity is as follows:
You cannot send messages to a disabled queue or a disabled topic.
You cannot receive messages from a disabled queue, a disabled subscription, or a subscription to a disabled topic.
You cannot add or remove a rule of a disabled subscription or a subscription to a disabled topic.
You can create a new subscription with a custom filter if the topic is disabled.
If you send a message to an active topic, Service Bus copies the message into a disabled subscription.
Service Bus continues to send scheduled messages that are due if the topic is disabled.
Service Bus copies scheduled messages into a disabled subscription if the message is due.
Service Bus removes expired messages from a subscription if the topic or that subscription is disabled.
All management operations (Delete, GetQueue, etc.) are permitted on disabled entities.