Click or drag to resize

IPublishingManagerSerializeRedirects Method


Produces XML serialization of the Redirect entries that apply to the given Publishing Target. The Dynamic Site Server depends on the results of this serialization to control redirects.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
XElement SerializeRedirects(
	IPublishingTarget pubTarget
)

Parameters

pubTarget
Type: Ingeniux.CMSIPublishingTarget
The publishing target to serialize redirects for

Return Value

Type: XElement
XML serialization of Redirect entries that apply to the Publishing Target.
Examples
Example of redirects serialization:
XML
 <Site>
  <redirect id="redirects/34" from="/giveaway" to="x837" />
  <redirect id="redirects/35" from="/easy-cms" to="/products/web-cms/ease-of-use" />
  <redirect id="redirects/36" from="/promotion" to="http://bannersis.site.edu" />
</Site>
See Also