Share via


Policy.CreatePolicy Method

Creates an information policy in the specified content type.

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

Syntax

'Declaration
Public Shared Sub CreatePolicy ( _
    ct As SPContentType, _
    globalPolicy As Policy _
)
'Usage
Dim ct As SPContentType
Dim globalPolicy As Policy

Policy.CreatePolicy(ct, globalPolicy)
public static void CreatePolicy(
    SPContentType ct,
    Policy globalPolicy
)

Parameters

Remarks

If you pass a null reference as the globalPolicy parameter, Microsoft Office SharePoint Server 2007 creates a new, empty information policy in the content type.

Information policies are stored in SPContentType objects as an XMLDocument object. For more information about information policies in content types, see Policies in Content Types.

See Also

Reference

Policy Class

Policy Members

Microsoft.Office.RecordsManagement.InformationPolicy Namespace