ListPolicySettings Class

Manages location-based retention policy settings on a list and its subfolders.


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

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class ListPolicySettings

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.