Share via


Policy.IsItemExempt method

Gets whether the specified list item is 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 Function IsItemExempt ( _
    item As SPListItem _
) As Boolean
'Usage
Dim item As SPListItem
Dim returnValue As Boolean

returnValue = Policy.IsItemExempt(item)
public static bool IsItemExempt(
    SPListItem item
)

Parameters

Return value

Type: System.Boolean
true if the specified list item is exempt from the information policy applied to it; false if it is not.

Remarks

Use the SetExemption method to make a list item exempt from the information policy applied to it. Use the RemoveExemption to remove such an exemption from a list item.

See also

Reference

Policy class

Policy members

Microsoft.Office.RecordsManagement.InformationPolicy namespace