Share via


Mailbox.RetainDeletedItemsFor property

Gets or sets the length of time to keep deleted items.

Namespace:  Microsoft.Exchange.Data.Directory.Management
Assembly:  Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)

Syntax

'Declaration
Public Property RetainDeletedItemsFor As EnhancedTimeSpan
    Get
    Set
'Usage
Dim instance As Mailbox
Dim value As EnhancedTimeSpan

value = instance.RetainDeletedItemsFor

instance.RetainDeletedItemsFor = value
public EnhancedTimeSpan RetainDeletedItemsFor { get; set; }

Property value

Type: Microsoft.Exchange.Data.EnhancedTimeSpan
The length of time to keep deleted items.

Remarks

The value of the RetainDeletedItemsFor 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 retry interval to 15 hours, set the time span to 00.15:00:00.

See also

Reference

Mailbox class

Mailbox members

Microsoft.Exchange.Data.Directory.Management namespace