Compartir a través de


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
<ParameterAttribute(Mandatory := False)> _
Public Property MessageExpirationTimeout As EnhancedTimeSpan
    Get
    Set
'Usage
Dim instance As TransportServer
Dim value As EnhancedTimeSpan

value = instance.MessageExpirationTimeout

instance.MessageExpirationTimeout = value
[ParameterAttribute(Mandatory = false)]
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).