XmlAttributes.XmlAnyAttribute Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the XmlAnyAttributeAttribute to override.
public:
property System::Xml::Serialization::XmlAnyAttributeAttribute ^ XmlAnyAttribute { System::Xml::Serialization::XmlAnyAttributeAttribute ^ get(); void set(System::Xml::Serialization::XmlAnyAttributeAttribute ^ value); };
public System.Xml.Serialization.XmlAnyAttributeAttribute XmlAnyAttribute { get; set; }
public System.Xml.Serialization.XmlAnyAttributeAttribute? XmlAnyAttribute { get; set; }
member this.XmlAnyAttribute : System.Xml.Serialization.XmlAnyAttributeAttribute with get, set
Public Property XmlAnyAttribute As XmlAnyAttributeAttribute
Property Value
The XmlAnyAttributeAttribute to override.
Remarks
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 has been altered by an XML Web service, or when it is known that random data is always included with the XML stream.
The XmlAnyAttribute property allows you to override the serialization of a member to which the XmlAnyAttributeAttribute has been applied.