ServiceDescriptionImporter.CodeGenerationOptions Property
Definition
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
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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre