This topic has not yet been rated - Rate this topic

ListPolicySettings Class

SharePoint 2010

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

System.Object
  Microsoft.Office.RecordsManagement.InformationPolicy.ListPolicySettings

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Overload Missing
$0$0 $0 $0 "The root folder's retention schedule can be set by using the ListPolicySettingsGetRetentionSchedule(String, String) method."$0 $0$0 $0 $0This statement indicates that there is a (String, String) overload for the GetRentionSchedule() Method but I do not see it here:$0 $0$0 $0 http://msdn.microsoft.com/en-us/library/microsoft.office.recordsmanagement.informationpolicy.listpolicysettings.getretentionschedule.aspx $0$0 $0 $0Or is that not a typo and there actually is a ListPolicySettingsGetRetentionSchedule method somewhere?$0