Assembly: System.Xml (in system.xml.dll)
The XmlArrayItemAttributes 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 XmlArrayItemAttributes 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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.