Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ServiceBusReceiveMode Enum

Definition

Namespace:
Azure.Messaging.ServiceBus
Assembly:
Azure.Messaging.ServiceBus.dll
Package:
Azure.Messaging.ServiceBus v7.20.1
Package:
Azure.Messaging.ServiceBus v7.18.0-beta.1
Source:
ServiceBusReceiveMode.cs
Source:
ServiceBusReceiveMode.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The mode in which to receive messages.

public enum ServiceBusReceiveMode
type ServiceBusReceiveMode = 
Public Enum ServiceBusReceiveMode
Inheritance
ServiceBusReceiveMode

Fields

Name Value Description
PeekLock 0

Once a message is received in this mode, the receiver has a lock on the message for a particular duration. If the message is not settled by this time, it lands back on Service Bus to be fetched by the next receive operation.

ReceiveAndDelete 1

ReceiveAndDelete will delete the message from Service Bus as soon as the message is delivered.

Applies to


Feedback

Was this page helpful?