Export (0) Print
Expand All

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)

void Register(
	SPContentType ct
)

Parameters

ct
Type: Microsoft.SharePoint.SPContentType

Content type to which the policy applies.

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.

Community Additions

ADD
Show:
© 2014 Microsoft