This documentation is archived and is not being maintained.

XmlElementAttribute.Order Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the explicit order in which the elements are serialized or deserialized.

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

public int Order { get; set; }
/** @property */
public int get_Order ()

/** @property */
public void set_Order (int value)

public function get Order () : int

public function set Order (value : int)

Property Value

The order of the code generation.

Use the GenerateOrder enumeration to instruct the ServiceDescriptionImporter to generate code that sets the Order property.

NoteImportant:

Once the Order property has been used on one public property or field in a type, it must be applied to all public properties and fields for that type and all inherited types.

Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows CE Platform Note: The Web Services Description Language Tool (Wsdl.exe) has the /order option that generates explicit order identifiers on particle members. However, the .NET Compact Framework does not support all of the code generated by the tool. The recommended workaround is to copy the orders from the generated code from the Wsdl.exe tool into a proxy class generated from adding a Web reference to a Smart Device project in Microsoft Visual Studio 2005. For more information, see How to: Use a Proxy Generated by Wsdl.exe.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0
Show: