Click or drag to resize

ISchemaFieldResultDeclaration Property


Gets the declaration element of the field

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
XElement Declaration { get; }

Property Value

Type: XElement
Remarks
Attribute field output is always a standard data type with the "dt:type" attribute. Element field output can be standard "dt:type", or XPower type with an XPower prefix like "xpowercomponent_".
Examples

Depending whether the field is an attribute or an element, there are two types of declaration results:

Attribute field output:

XML
<AttributeType name="Timeout" dt:type="string" default="8"/>

Element field output:

XML
<ElementType name="Title" dt:type="string" content="textOnly"/>
<ElementType name="xpowernavigation_AncestorNavigation" content="eltOnly"/>
<ElementType name="xpowercomponent_SiteControl" content="eltOnly"/>
See Also