編輯

共用方式為


ServiceDescriptionImporter.CodeGenerationOptions Property

Definition

Gets or sets various options for code generation.

public:
 property System::Xml::Serialization::CodeGenerationOptions CodeGenerationOptions { System::Xml::Serialization::CodeGenerationOptions get(); void set(System::Xml::Serialization::CodeGenerationOptions value); };
[System.Runtime.InteropServices.ComVisible(false)]
public System.Xml.Serialization.CodeGenerationOptions CodeGenerationOptions { get; set; }
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CodeGenerationOptions : System.Xml.Serialization.CodeGenerationOptions with get, set
Public Property CodeGenerationOptions As CodeGenerationOptions

Property Value

A member or combination of members of the CodeGenerationOptions enumeration.

Attributes

Examples

The following example illustrates the use of the CodeGenerationOptions property.

// Generate properties to represent primitive values.
importer->CodeGenerationOptions = System::Xml::Serialization::CodeGenerationOptions::GenerateProperties;
// 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