Share via


IPolicyFeature.UnRegister method

Performs any needed cleanup work when a policy item is removed from a policy.

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

Syntax

'Declaration
Sub UnRegister ( _
    ct As SPContentType _
)
'Usage
Dim instance As IPolicyFeature
Dim ct As SPContentType

instance.UnRegister(ct)
void UnRegister(
    SPContentType ct
)

Parameters

Remarks

SharePoint Server 2010 calls the UnRegister method when an existing policy item is removed from a policy. If you delete a policy item from a policy, SharePoint Server 2010 calls the UnRegister method of the associated policy feature to perform any needed cleanup work. You use this method to undo anything you did when you called the Register method that no longer applies.

For more information, see IPolicyFeature Interface Overview and Policy Feature Definitions.

For an example of how to use this method, see the example in the ProcessListItem method.

See also

Reference

IPolicyFeature interface

IPolicyFeature members

Microsoft.Office.RecordsManagement.InformationPolicy namespace