ListPolicySettings.SetRetentionSchedule method (String, String)

Sets the retention schedule for the information policy based on the retention XML file name and description provided.

Namespace:  Microsoft.Office.RecordsManagement.InformationPolicy
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Sub SetRetentionSchedule ( _
    retentionXml As String, _
    description As String _
)
'Usage
Dim instance As ListPolicySettings
Dim retentionXml As String
Dim description As String

instance.SetRetentionSchedule(retentionXml, _
    description)
public void SetRetentionSchedule(
    string retentionXml,
    string description
)

Parameters

  • retentionXml
    Type: System.String

    The custom retention schedule similar to the retention XML from the expiration policy feature; a valid XML fragment.

  • description
    Type: System.String

    The description of the custom retention schedule.

See also

Reference

ListPolicySettings class

ListPolicySettings members

SetRetentionSchedule overload

Microsoft.Office.RecordsManagement.InformationPolicy namespace