Manages location-based retention policy settings on a list and its subfolders.
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
In Microsoft SharePoint Server 2010, retention policy can now be location-based in addition to content type based. A list, folder, or subfolder can inherit from a parent’s policy, define its own policy, or not follow any policy.
Initialize a new instance of this class by using the constructor new ListPolicySettings(SPList). The root folder and each subfolder's retention schedule can be obtained by using the ListPolicySettingsGetRetentionSchedule(String) method. The root folder's retention schedule can be set by using the GetRetentionSchedule(String, String) method. Set the retention schedule for subfolders by using the SetRetentionSchedule(String, String, String) method.