ServiceDescriptionImporter.CodeGenerationOptions Property

Definition

Gets or sets various options for code generation.

C#
[System.Runtime.InteropServices.ComVisible(false)]
public System.Xml.Serialization.CodeGenerationOptions CodeGenerationOptions { get; set; }

Property Value

A member or combination of members of the CodeGenerationOptions enumeration.

Attributes

Examples

The following example illustrates the use of the CodeGenerationOptions property.

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

Remarks

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.

Applies to

Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1