Thursday, February 08, 2007

Linking SPContentType with an Microsoft.Office.RecordsManagement.InformationPolicy

Based on the article by Ton Stegeman and the DocIntegrityPolicyFeature example found in the ECM toolkit I have managed to build my own policy feature for regulatory document management. It works perfect - when deployed from the end-user interface, i.e. similar to .

But how do you associate a content class with an Information Policy in code?

The Microsoft.Office.RecordsManagement.InformationPolicy object contains the Microsoft.Office.RecordsManagement.InformationPolicy.PolicyCatalog.FeatureList which is a PolicyFeatureCollection of all available PolicyFeatures installed.

It contains the following features:
  • Barcode
  • Label
  • Expiration
  • Audit

as well as my custom feature, RegulatoryDocumentManagement.

Linking a contenttype with an information policy is done through the CreatePolicy interface described at MSDN.

No comments: