System.Xml.Serialization.XmlArrayItemAttribute.NestingLevel Property

Gets or sets the level in a hierarchy of XML elements that the System.Xml.Serialization.XmlArrayItemAttribute affects.

Syntax

public int NestingLevel { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

An XML document can contain hierarchies of XML elements. To represent such a hierarchy, an array of arrays is used. In such an array, each index represents a level in the hierarchy. Therefore, the XmlArrayItemAttribute.NestingLevel property is only used when applying an System.Xml.Serialization.XmlArrayItemAttribute to a field that returns an array of arrays.

When applying the attribute, specify which hierarchy level the attribute affects by setting the XmlArrayItemAttribute.NestingLevel. The first index always has the value of 0; therefore it is optional to set its XmlArrayItemAttribute.NestingLevel --an System.Xml.Serialization.XmlArrayItemAttribute without a XmlArrayItemAttribute.NestingLevel value is applied to the first array index. Only the subsequent System.Xml.Serialization.XmlArrayItemAttribute objects require XmlArrayItemAttribute.NestingLevel values specified (as 1, 2, 3, and so forth).

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0