Policy.Export Method

Definition

Creates an XML rendering of the information policy.

public:
 System::Xml::XmlDocument ^ Export();
public System.Xml.XmlDocument Export ();
member this.Export : unit -> System.Xml.XmlDocument
Public Function Export () As XmlDocument

Returns

XmlDocument

An XmlDocument object that represents the information policy in XML format.

Remarks

Exporting an information policy as XML enables you to import that policy into another site collection. To do so, use the Add(SPSite, String) method of the PolicyCollection object for that site collection.

For more information about the information policy schema, see Policy Schema Overview.

Applies to