IPolicyFeature.OnCustomDataChange Method
Called by the policy infrastructure when the custom data (for example, the Expiration policy feature) for a policy feature changes. Third-party developers who implement this method can decide whether or to perform an action when the custom data for a policy feature changes.
Namespace: Microsoft.Office.RecordsManagement.InformationPolicy
Assembly: Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)
Syntax
'Declaration
Sub OnCustomDataChange ( _
policyItem As PolicyItem, _
ct As SPContentType _
)
'Usage
Dim instance As IPolicyFeature
Dim policyItem As PolicyItem
Dim ct As SPContentType
instance.OnCustomDataChange(policyItem, _
ct)
void OnCustomDataChange(
PolicyItem policyItem,
SPContentType ct
)
Parameters
policyItem
Type: Microsoft.Office.RecordsManagement.InformationPolicy.PolicyItemUpdated policy item.
ct
Type: Microsoft.SharePoint.SPContentTypeContent type to which this policy applies.
Remarks
Microsoft SharePoint Server 2010 calls the OnCustomDataChange method when a user changes the custom settings on a specific policy item.
For more information, see IPolicyFeature Interface Overview (ECM) and Policy Feature Definitions in SharePoint Server 2010 (ECM).
For an example of how to implement the IPolicyFeature interface, see the ProcessListItem method.
See Also
Reference
Microsoft.Office.RecordsManagement.InformationPolicy Namespace