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.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈