This documentation is archived and is not being maintained.

XmlAttributes.XmlAnyAttribute Property

Gets or sets the XmlAnyAttributeAttribute to override.

[Visual Basic]
Public Property XmlAnyAttribute As XmlAnyAttributeAttribute
public XmlAnyAttributeAttribute XmlAnyAttribute {get; set;}
public: __property XmlAnyAttributeAttribute* get_XmlAnyAttribute();
public: __property void set_XmlAnyAttribute(XmlAnyAttributeAttribute*);
public function get XmlAnyAttribute() : XmlAnyAttributeAttribute;
public function set XmlAnyAttribute(XmlAnyAttributeAttribute);

Property Value

The XmlAnyAttributeAttribute to override.


The XmlAnyAttributeAttribute can be applied to a member that returns an array of XmlAttribute objects on deserialization. This allows the XmlSerializer to deserialize any attributes 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 may have been altered by an XML Web service, or when it is known that random data will be always be included with the XML stream.

The XmlAnyAttribute property allows you to override the serialization of a member to which the XmlAnyAttributeAttribute has been applied.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlAttributes Class | XmlAttributes Members | System.Xml.Serialization Namespace