XmlElementAttribute Constructor (String, Type) |
Initializes a new instance of the System.Xml.Serialization.XmlElementAttribute
and specifies the name of the XML element and a derived type for the member
to which the System.Xml.Serialization.XmlElementAttribute is applied. This
member type is used when the System.Xml.Serialization.XmlSerializer serializes
the object that contains it.
Namespace: System.Xml.SerializationAssembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax public XmlElementAttribute(
string elementName,
Type type
)
Parameters
- elementName
- Type: SystemString
The XML element name of the serialized member. - type
- Type: SystemType
The System.Type of an object derived from the member's type.
See Also