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)

public:
[ComVisibleAttribute(false)]
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;

.NET Framework
Available since 2.0
Return to top
Show: