PolicyCollection.Add(SPSite, String) PolicyCollection.Add(SPSite, String) PolicyCollection.Add(SPSite, String) Method

Definition

Adds the specified information policy to the collection.

public:
 static void Add(Microsoft::SharePoint::SPSite ^ site, System::String ^ xmlManifest);
public static void Add (Microsoft.SharePoint.SPSite site, string xmlManifest);
Public Shared Sub Add (site As SPSite, xmlManifest As String)
Parameters
site
SPSite SPSite SPSite

The site collection to which to add the information policy.

xmlManifest
String String String

An XML representation of the policy definition.

Remarks

To validate an XML representation of an information policy, use the ValidateManifest(String) method of the Policy object.

For more information about the schema to which policy definitions must adhere, see Policy Schema Overview.

Applies to