Click or drag to resize

IExportsElement Interface


Represents the collection of local export entries in Navigation and Link elements. Defines an additional XML attribute to be included in a Page element's output.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
public interface IExportsElement

The IExportsElement type exposes the following members.

Methods
 NameDescription
Public methodAddExport Adds a new export entry to the collection.
Public methodClearExports Clears all export entries from collection. This method leaves the collection empty.
Public methodExports Retrieves all exports entries in the collection.
Public methodRemoveExport Removes an export entry from the collection.
Public methodSetValue Sets all exports directly.
Public methodCode exampleValue Gets the entries' serialization output together, escaped as a string.
Top
Remarks
Local exports are not recommended unless absolutely needed. They are performance intensive for any navigation more than a couple entries. Recommended to use Global Exports instead.
Example

ExportsElement can be found by the LocalExports property of a Navigation element. Navigation and Link elements always have this property, which is never a null object:

C#
IExportsElement localExports = page.Element("AncestorNavigation").LocalExports.

Serialization output matches the Exports element under NavigationElements in previous-generation CMS content. The entries in the collection serialization output are escaped to a string.

XML
<Exports>&lt;Export&gt;&lt;Name&gt;Title&lt;/Name&gt;&lt;Value&gt;/*/Title&lt;/Value&gt;&lt;/Export&gt;&lt;Export&gt;&lt;Name&gt;Abstract&lt;/Name&gt;&lt;Value&gt;/*/Abstract&lt;/Value&gt;&lt;/Export&gt;</Exports>
See Also