Specifies that the field is an enumeration member and should be serialized.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
The enables fine control of the names of the enumerations as they are serialized.
To use , create an enumeration and apply the DataContractAttribute attribute to the enumeration. Then apply the attribute to each member that needs to be in the serialization stream.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.