Compartilhar via


_MailItem.RetentionPolicyName Property

Returns a String (string in C#) that specifies the name of the retention policy. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property RetentionPolicyName As String
    Get
'Usage
Dim instance As _MailItem
Dim value As String

value = instance.RetentionPolicyName
[DispIdAttribute()]
string RetentionPolicyName { get; }

Property Value

Type: System.String

Remarks

Retention is enabled and disabled by an administrator for a Microsoft Exchange Server on a mailbox level. The feature is available only on an Exchange Server 2010 mailbox with Messaging Records Management (MRM) 2.0 enabled. An example of a retention policy name is "Define time interval for expiration Quick Searches".

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace