Partilhar via


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.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class ListPolicySettings
'Usage
Dim instance As ListPolicySettings
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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