Click or drag to resize

IPublishingManagerPublishingTargetsSerialize Method


Produces the XML serialization of the Publishing Targets collection. The result matches the XML format of publishingTargets.xml prior to CMS 9.0.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
XElement PublishingTargetsSerialize(
	bool forReports = false
)

Parameters

forReports (Optional)
Type: SystemBoolean

[Missing <param name="forReports"/> documentation for "M:Ingeniux.CMS.IPublishingManager.PublishingTargetsSerialize(System.Boolean)"]

Return Value

Type: XElement
XML serialization of publishing targets their publish markings.
Examples
Example of publishing targets serialization:
XML
<PublishingTargets >
  <PublishingTarget ID="PublishingTargets/12" Name="Production" PublishFolder="production" RootPageID="x2" UserAgentSearchString="" 
    SiteSearchString="" Transform="false" ReplicationTarget="" ReplicationTargetModule="" LastPublishDate="20140324T23:11:00" 
    UseStructuredURL="true" HomePageID="x11" NotFoundID="x722" URLExtension="" URLSeparator="-" ForceLowerCaseURL="true" AutoRedirectCanonicalURL="true" 
    IncludeFoldersInURL="false" NormalizeURLSeparators="true" BaseURL="" UseExternalPreviewURL="false">
      <Page ID="x2" Version="6"/>
      <Page ID="x11" Version="2"/>
      <Page ID="x37" Version="3"/>
      <Page ID="x201" Version="0"/>
  </PublishingTarget>
</PublishingTargets>
See Also