XmlEnumAttribute Constructor (String)
Collapse the table of content
Expand the table of content

XmlEnumAttribute Constructor (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 XmlEnumAttribute class, and specifies the XML value that the XmlSerializer generates or recognizes (when it serializes or deserializes the enumeration, respectively).

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

public XmlEnumAttribute(
	string name
)

Parameters

name
Type: System.String
The overriding name of the enumeration member.

NoteNote:

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft