Export (0) Print
Expand All

ServiceDescriptionImporter.CodeGenerationOptions Property

Gets or sets various options for code generation.

Namespace:  System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

[ComVisibleAttribute(false)]
public CodeGenerationOptions CodeGenerationOptions { get; set; }

Property Value

Type: System.Xml.Serialization.CodeGenerationOptions
A member or combination of members of the CodeGenerationOptions enumeration.

The CodeGenerationOptions property allows you to specify various options used when the Import method is called to generate code. For example, you can specify whether simple types described in the WSDL are generated as value types or System.Data.SqlTypes namespace types, and whether they are generated as properties or fields.

The following example illustrates the use of the CodeGenerationOptions property.

// Generate properties to represent primitive values.
importer.CodeGenerationOptions = System.Xml.Serialization.CodeGenerationOptions.GenerateProperties;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft