Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)
/** @property */ public String get_Name () /** @property */ public void set_Name (String value)
Property ValueThe name of the data member. The default is the name of the target that the attribute is applied to.
This property is used to override the default name of the data member that is derived from the name of the member annotated with the DataMemberAttribute.
The Name property enables you to use names that are not permitted as common language runtime (CLR) identifiers. In addition, this property enables the type author to define a data member name separate from the CLR member name. This separate definition helps in versioning scenarios (changing the CLR member name without breaking the data contract) and allows a different naming convention for data contact members and CLR members.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.