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
ct
Type: Microsoft.SharePoint.SPContentTypeContent type to which the policy applies.
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 (ECM) and Policy Feature Definitions in SharePoint Server 2010 (ECM).
For an example of how to use this method, see the example in the ProcessListItem method.
See Also
Reference
Microsoft.Office.RecordsManagement.InformationPolicy Namespace