Share via


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

value = instance.RetainDeletedItemsFor

instance.RetainDeletedItemsFor = value
[ParameterAttribute(Mandatory = false)]
public EnhancedTimeSpan RetainDeletedItemsFor { get; set; }

Property Value

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

Remarks

To specify a value for this property, enter it as a time span: dd.hh:mm:ss where dd represents days; hh represents hours; mm represents minutes; and ss represents seconds.