IPolicyFeature.Register method

Performs any required initiation work, such as adding specific columns to the content type, or registering for events when a policy item is added to a policy.

Namespace:  Microsoft.Office.RecordsManagement.InformationPolicy
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Sub Register ( _
    ct As SPContentType _
)
'Usage
Dim instance As IPolicyFeature
Dim ct As SPContentType

instance.Register(ct)
void Register(
    SPContentType ct
)

Parameters

Remarks

Microsoft SharePoint Server 2010 calls the Register method when a user adds a new policy item to a policy. SharePoint Server 2010 calls the Register method of the associated policy feature to perform any required initiation work. 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.

See also

Reference

IPolicyFeature interface

IPolicyFeature members

Microsoft.Office.RecordsManagement.InformationPolicy namespace