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.StringThe server-relative URL of the folder.
retentionXml
Type: System.StringThe custom retention schedule similar to the retention XML from the expiration policy feature; a valid XML fragment.
description
Type: System.StringThe description of the custom retention schedule.
See Also
Reference
Microsoft.Office.RecordsManagement.InformationPolicy Namespace