다음을 통해 공유


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)

Syntax

'Declaration
Public Sub SetRetentionSchedule ( _
    folderUrl As String, _
    retentionXml As String, _
    description As String _
)
'Usage
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
)

Parameters

  • 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

Reference

ListPolicySettings Class

ListPolicySettings Members

SetRetentionSchedule Overload

Microsoft.Office.RecordsManagement.InformationPolicy Namespace