Share via


Mailbox.EndDateForRetentionHold property

Gets or sets the date and time that a retention hold on messages in this mailbox expires.

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

Syntax

'Declaration
Public Property EndDateForRetentionHold As Nullable(Of DateTime)
    Get
    Set
'Usage
Dim instance As Mailbox
Dim value As Nullable(Of DateTime)

value = instance.EndDateForRetentionHold

instance.EndDateForRetentionHold = value
public Nullable<DateTime> EndDateForRetentionHold { get; set; }

Property value

Type: System.Nullable<DateTime>
The date and time that the retention hold expires. This property can be a null reference (Nothing in Visual Basic).

Remarks

The EndDateForRetentionHold property is the date and time that messaging records management retention hold is removed from a mailbox. To hold items in a mailbox, set the RetentionHoldEnabled property to true.

See also

Reference

Mailbox class

Mailbox members

Microsoft.Exchange.Data.Directory.Management namespace