ListPolicySettings.SetRetentionSchedule Method (String, String, String)

Sets the retention schedule for the root folder only of the information policy based on the folder URL, retention XML file name, and description provided.

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


Public Sub SetRetentionSchedule ( _
    folderUrl As String, _
    retentionXml As String, _
    description As String _
Dim instance As ListPolicySettings
Dim folderUrl As String
Dim retentionXml As String
Dim description As String

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


  • folderUrl
    Type: System.String

    The server-relative URL of the folder.

  • 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


ListPolicySettings Class

ListPolicySettings Members

SetRetentionSchedule Overload

Microsoft.Office.RecordsManagement.InformationPolicy Namespace