System.Xml.Serialization.XmlAttributes.XmlArrayItems Property

Gets or sets a collection of objects that specify how the System.Xml.Serialization.XmlSerializer serializes items inserted into an array returned by a public field or read/write property.

Syntax

public XmlArrayItemAttributes XmlArrayItems { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The XmlAttributes.XmlArrayItems property allows you to specify the derived types that can be inserted into an array returned by a public field or public read/write property. For each new type you want the field or property to accept, create an System.Xml.Serialization.XmlArrayItemAttribute object and XmlArrayItemAttributes.Add(XmlArrayItemAttribute) it to the System.Xml.Serialization.XmlArrayItemAttributes) returned by the XmlAttributes.XmlArrayItems property. (The new type must be derived from the type already accepted by the field or property.) XmlAttributeOverrides.Add(Type, XmlAttributes) the System.Xml.Serialization.XmlAttributes object to an System.Xml.Serialization.XmlAttributeOverrides object and specify the type of the object that contains the field or property, and the name of the field or property. Construct an System.Xml.Serialization.XmlSerializer with the System.Xml.Serialization.XmlAttributeOverrides object before calling XmlSerializer.Serialize(System.IO.TextWriter, object) or XmlSerializer.Deserialize(System.IO.Stream) method.

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