다음을 통해 공유


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)

Syntax

'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

Remarks

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 (ECM) and Policy Feature Definitions in SharePoint Server 2010 (ECM). 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.

See Also

Reference

IPolicyFeature Members

Microsoft.Office.RecordsManagement.InformationPolicy Namespace