ListPolicySettings class

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

Inheritance hierarchy

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

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class ListPolicySettings
'Usage
Dim instance As ListPolicySettings
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class ListPolicySettings

Remarks

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.

Thread safety

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

See also

Reference

ListPolicySettings members

Microsoft.Office.RecordsManagement.InformationPolicy namespace