Represents a collection of XmlArrayItemAttribute objects.
Assembly: System.Xml (in System.Xml.dll)
The class allows you to specify the derived types that can be inserted into an array returned by a public field or public read/write property.
An instance of this class is returned by the XmlArrayItems property of the XmlAttributes class. The XmlAttributes class is used when overriding the set of XmlArrayItemAttribute objects that can be inserted into an array to which the XmlArrayAttribute has been applied.
For each new type you want the field or property to accept, create an XmlArrayItemAttribute and use the Add to add the object to the collection returned by the XmlArrayItems property. Add the XmlAttributes to an XmlAttributeOverrides, that specifies the type of the object that contains the field or property, and the name of the field or property. Construct an XmlSerializer with the XmlAttributeOverrides before calling the Serialize or Deserialize method.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.