Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CreateQueueOptions.DefaultMessageTimeToLive Property
Definition
- Namespace:
- Azure.Messaging.ServiceBus.Administration
- Assembly:
- Azure.Messaging.ServiceBus.dll
- Package:
- Azure.Messaging.ServiceBus v7.20.1
- Package:
- Azure.Messaging.ServiceBus v7.18.0-beta.1
- Source:
- CreateQueueOptions.cs
- Source:
- CreateQueueOptions.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 default time to live value for the messages. This is the duration after which the message expires, starting from when the message is sent to Service Bus.
public TimeSpan DefaultMessageTimeToLive { get; set; }
member this.DefaultMessageTimeToLive : TimeSpan with get, set
Public Property DefaultMessageTimeToLive As TimeSpan
Property Value
Remarks
This is the default value used when TimeToLive is not set on a message itself. Messages older than their TimeToLive value will expire and no longer be retained in the message store. Subscribers will be unable to receive expired messages. Default value is MaxValue.
Applies to
Azure SDK for .NET
Feedback
Was this page helpful?
