XmlArrayItemAttribute.NestingLevel Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the level in a hierarchy of XML elements that the XmlArrayItemAttribute affects.
Assembly: System.Xml (in System.Xml.dll)
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 NestingLevel property is used only when applying an XmlArrayItemAttribute to a field that returns an array of arrays.
When applying the attribute, specify which hierarchy level the attribute affects by setting the NestingLevel. The first index always has the value of 0; therefore, it is optional to set its NestingLevel. An XmlArrayItemAttribute without a NestingLevel value is applied to the first array index. Only the subsequent XmlArrayItemAttribute objects require NestingLevel values specified (as 1, 2, 3, and so forth).