XmlAttributes.XmlAnyElements Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the collection of XmlAnyElementAttribute objects to override.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Property Value
Type: System.Xml.Serialization.XmlAnyElementAttributesAn XmlAnyElementAttributes object that represents the collection of XmlAnyElementAttribute objects.
The XmlAnyElementAttribute can be applied to a member that returns an array of objects on deserialization. This allows the XmlSerializer to deserialize any elements that do not have a corresponding member in the object being deserialized; thus, those elements are "unknown" to the XmlSerializer. This is useful when the XML stream has been altered by an XML Web service or when it is known that random data is always included with the XML stream.
The XmlAnyElements property allows you to override the serialization of a member to function as a member to which the XmlAnyElementAttribute has been applied.