This documentation is archived and is not being maintained.

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 */
public CodeGenerationOptions get_CodeGenerationOptions ()

/** @property */
public void set_CodeGenerationOptions (CodeGenerationOptions value)

public function get CodeGenerationOptions () : CodeGenerationOptions

public function set CodeGenerationOptions (value : CodeGenerationOptions)

Not applicable.

Property Value

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;

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.

.NET Framework

Supported in: 3.0, 2.0
Show: