CodeGenerationOptions Enumeration
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.Xml.SerializationAssembly: System.Xml (in system.xml.dll)
| Member name | Description | |
|---|---|---|
| EnableDataBinding | Enables data binding. | |
| GenerateNewAsync | Creates events for the asynchronous invocation of Web methods. | |
| GenerateOldAsync | Creates Begin and End methods for the asynchronous invocation of Web methods. | |
| GenerateOrder | Generates explicitly ordered serialization code as specified through the Order property of the XmlAnyElementAttribute, XmlArrayAttribute, and XmlElementAttribute attributes. | |
| GenerateProperties | Represents primitive types by properties. | |
| None | Represents primitive types by fields and primitive types by System namespace types. |
A Web Service Description Language (WSDL) file typically describes a class in XML schema language as an xsd:complex type composed of various primitive xsd:complex and xsd:simple types. When generating a .NET Framework class that represents a given xsd:complex type, you must choose how to represent the various primitive types it contains.
By default, each primitive is implemented as a field. If you specify the GenerateProperties option, each primitive type is instead implemented as a property.
The following example illustrates the use of the CodeGenerationOptions enumeration to specify the behavior of a ServiceDescriptionImporter object.
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 Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.