Share via


Policy.SetExemption method

Makes the specified list item exempt from the information policy applied to it.

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

Syntax

'Declaration
Public Shared Sub SetExemption ( _
    item As SPListItem _
)
'Usage
Dim item As SPListItemPolicy.SetExemption(item)
public static void SetExemption(
    SPListItem item
)

Parameters

Remarks

Use the RemoveExemption to remove an information policy exemption from a list item. Use the IsItemExempt method to determine if a list item is exempt from the information policy applied to it.

See also

Reference

Policy class

Policy members

Microsoft.Office.RecordsManagement.InformationPolicy namespace