Specifies the interface that a class must implement to act as a policy feature.
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
'Declaration <SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _ <SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _ Public Interface IPolicyFeature 'Usage Dim instance As IPolicyFeature
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public interface IPolicyFeature
In addition to installing a valid Policy Feature Definition, each policy feature must also contain a class that implements the IPolicyFeature interface. This interface enables Microsoft SharePoint Server 2010 to call the code required to perform any initiation work the policy feature needs, as well as any code required to perform any tasks when a policy item that is associated with the policy feature is added, deleted, or changed for a content type.
For more information, see IPolicyFeature Interface Overview and Policy Feature Definitions. For an example of how to use this method, see the PolicyFeature.cs file and the EnterpriseContentManagementStarterKitSampleGuide document in the ECM Starter Kit code sample folders in the Microsoft Office SharePoint Server 2010 SDK download.