Compartilhar 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