Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2010 product release

Other versions are also available for the following:
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)
Visual Basic (Declaration)
Public Shared Sub CreatePolicy ( _
    ct As SPContentType, _
    globalPolicy As Policy _
)
Visual Basic (Usage)
Dim ct As SPContentType
Dim globalPolicy As Policy

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

Parameters

ct
Type: Microsoft.SharePoint..::.SPContentType
The SPContentType object in which to create the information policy.
globalPolicy
Type: Microsoft.Office.RecordsManagement.InformationPolicy..::.Policy
The site information policy to copy into the specified content type.

If you pass a null reference as the globalPolicy parameter, Microsoft SharePoint Server 2010 creates an 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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker