Compartilhar via


Mailbox.LitigationHoldEnabled property

Gets or sets a value that indicates whether the mailbox is under a litigation hold.

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

Syntax

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

value = instance.LitigationHoldEnabled

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

Property value

Type: System.Boolean
true if the mailbox is under a litigation hold; otherwise, false, The default is false.

Remarks

The LitigationHoldEnabled property indicates whether that the mailbox is under litigation hold and that messages can't be deleted from the user's account.

After a mailbox is placed on litigation hold, deleted items and all versions of changed items are retained in the Recoverable Items folder. Items that are purged from the dumpster are also retained and the items are held indefinitely. If you enable litigation hold, single-item recovery quotas aren't applied.

See also

Reference

Mailbox class

Mailbox members

Microsoft.Exchange.Data.Directory.Management namespace