Share via


PolicyItemCollection.Add Method

Creates a policy item in the information policy for the specified policy feature.

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

Syntax

'Declaration
Public Sub Add ( _
    policyFeatureId As String, _
    customData As String _
)
'Usage
Dim instance As PolicyItemCollection
Dim policyFeatureId As String
Dim customData As String

instance.Add(policyFeatureId, customData)
public void Add(
    string policyFeatureId,
    string customData
)

Parameters

  • policyFeatureId
    Type: System.String

    The ID of the policy feature that this policy item configures.

  • customData
    Type: System.String

    Any custom information the policy feature requires for operation.

Remarks

Use the Id property of the PolicyFeature object to determine a policy feature's ID.

Logically, each policy is a collection of instruction sets for one or more policy features. For each policy feature that you want to include in a policy, you include an instruction set, called a policy item, in the policy. A policy item contains the settings for only one policy feature.

For more information about information policies and policy features, see Managing Information Management Policy in SharePoint Server 2010 (ECM).

See Also

Reference

PolicyItemCollection Class

PolicyItemCollection Members

Microsoft.Office.RecordsManagement.InformationPolicy Namespace