Hade du nytta av den här sidan?
Din feedback om det här innehållet är viktig. Berätta vad du tycker.
Ytterligare feedback?
1500 tecken kvar
Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

QueueDescription.DefaultMessageTimeToLive Property

Gets or sets the default message time to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. 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.

A message can have a lower TimeToLive value than that specified here, but by default TimeToLive is set to MaxValue. Therefore, this property becomes the default time to live value applied to messages.

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

public TimeSpan DefaultMessageTimeToLive { get; set; }

Property Value

Type: System.TimeSpan
The default message time to live value.

If you set the EnableDeadLetteringOnMessageExpiration property, then any message that is not received before its expiration will be moved to the dead-letter queue.

There is no minimum or maximum bound on TimeToLive.

Gruppinnehåll

Lägg till
Visa:
© 2015 Microsoft