TransportServer.MessageExpirationTimeout property
Gets or sets the maximum time that a message can remain in a queue.
Namespace: Microsoft.Exchange.Data.Directory.Management
Assembly: Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)
Syntax
'Declaration
Public Property MessageExpirationTimeout As EnhancedTimeSpan
Get
Set
'Usage
Dim instance As TransportServer
Dim value As EnhancedTimeSpan
value = instance.MessageExpirationTimeout
instance.MessageExpirationTimeout = value
public EnhancedTimeSpan MessageExpirationTimeout { get; set; }
Property value
Type: Microsoft.Exchange.Data.EnhancedTimeSpan
The maximum time that a message can remain in a queue. The default value is 2 days.
Remarks
If a message remains in a queue longer than specified by the MessageExpirationTimeout property, the message is returned to the sender as a permanent failure.
The value of the MessageExpirationTimeout property is a time span in the form dd.hh:mm:ss, where d = days, h = hours, m = minutes, and s = seconds. For example, to set the message expiration timeout to 30 days, set the time span to 30.00:00:00.
The MessageExpirationTimeout property must be set to a value between 5 seconds (00.00:00:05) and 90 days (90.00:00:00).