System.Xml.Serialization.XmlEnumAttribute.Name Property

Gets or sets the value generated in an XML-document instance when the System.Xml.Serialization.XmlSerializer serializes an enumeration, or the value recognized when it deserializes the enumeration member.

Syntax

public string Name { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Specify the XmlEnumAttribute.Name when you want the generated XML data to differ from the enumeration identifier.

Note:

You can use the word XmlEnum in your code instead of the longer System.Xml.Serialization.XmlEnumAttribute.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0