Export (0) Print
Expand All

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)

void UnRegister(
	SPContentType ct
)

Parameters

ct
Type: Microsoft.SharePoint.SPContentType

Content type to which the policy applies.

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.

Community Additions

ADD
Show:
© 2014 Microsoft