ServiceDescriptionImporter.CodeGenerationOptions Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A member or combination of members of the CodeGenerationOptions enumeration.
- Attributes
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;
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.
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 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :