Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IPolicyFeature interface

Specifies the interface that a class must implement to act as a policy feature.

Namespace:  Microsoft.Office.RecordsManagement.InformationPolicy
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
[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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.