Mailbox.RetentionHoldEnabled property

Gets or sets a value that indicates whether the contents of the mailbox are subject to retention.

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

Syntax

'Declaration
Public Property RetentionHoldEnabled As Boolean
    Get
    Set
'Usage
Dim instance As Mailbox
Dim value As Boolean

value = instance.RetentionHoldEnabled

instance.RetentionHoldEnabled = value
public bool RetentionHoldEnabled { get; set; }

Property value

Type: System.Boolean
true if the contents of the mailbox are subject to retention; otherwise, false.

Remarks

To set the start date for retention hold, set the StartDateForRetentionHold property. To set the end date for retention hold, set the EndDateForRetentionHold property.

See also

Reference

Mailbox class

Mailbox members

Microsoft.Exchange.Data.Directory.Management namespace