BrokeredMessage.ExpiresAtUtc Property
Gets the date and time in UTC at which the message is set to expire.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
| Exception | Condition |
|---|---|
| ObjectDisposedException |
Thrown if the message is in disposed state. |
| InvalidOperationException |
If the message has not been delivered by ServerBus. |
After the expiration time the message will be dead lettered if dead lettering is turned on, otherwise the message will be discarded from the system.
See EnableDeadLetteringOnMessageExpiration and EnableDeadLetteringOnMessageExpiration to learn more about how to control dead lettering setting for Queues and Subscriptions respectively.
See TimeToLive to learn more about configuring message TTL.