MailUser.RetentionHoldEnabled Property

Gets or sets a value that indicates whether retention hold is enabled for messaging retention policies.

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

Syntax

'Declaration
<ParameterAttribute(Mandatory := False)> _
Public Property RetentionHoldEnabled As Boolean
    Get
    Set
'Usage
Dim instance As MailUser
Dim value As Boolean

value = instance.RetentionHoldEnabled

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

Property Value

Type: System.Boolean
true if retention hold is enabled; otherwise, false.