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:
property CodeGenerationOptions CodeGenerationOptions {
	CodeGenerationOptions get ();
	void set (CodeGenerationOptions value);
}

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;
// Use types from the System.Data.SQLTypes namespace. 
importer->CodeGenerationOptions = System::Xml::Serialization::CodeGenerationOptions::UseSqlTypes;

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: