XmlAnyElementAttribute Constructor (String, String)
Collapse the table of content
Expand the table of content

XmlAnyElementAttribute Constructor (String, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the XmlAnyElementAttribute class and specifies the XML element name generated in the XML document and its XML namespace.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

public XmlAnyElementAttribute(
	string name,
	string ns
)

Parameters

name
Type: System.String
The name of the XML element that the XmlSerializer generates.
ns
Type: System.String
The XML namespace of the XML element.

Use the XmlAnyElementAttribute constructor when you are overriding the serialization of a field.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft