ServiceDescriptionImporter.CodeGenerationOptions Właściwość

Definicja

Pobiera lub ustawia różne opcje generowania kodu.

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

Wartość właściwości

CodeGenerationOptions

Składowa lub kombinacja składowych wyliczenia CodeGenerationOptions .

Atrybuty

Przykłady

Poniższy przykład ilustruje użycie CodeGenerationOptions właściwości.

// 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;

Uwagi

Właściwość CodeGenerationOptions umożliwia określenie różnych opcji używanych, gdy metoda jest wywoływana w celu wygenerowania Import kodu. Można na przykład określić, czy typy proste opisane w języku WSDL są generowane jako typy wartości lub System.Data.SqlTypes typy przestrzeni nazw oraz czy są generowane jako właściwości lub pola.

Dotyczy