IExportsElement Interface Ingeniux CMS Content Store API

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: 9.0.565.0 (9.0.565)
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
Examples

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.

<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

Reference