ServiceDescriptionImporter.Style Właściwość

Definicja

Pobiera lub ustawia wartość określającą styl kodu (klienta lub serwera), który jest generowany podczas importowania ServiceDescriptions wartości.

public:
 property System::Web::Services::Description::ServiceDescriptionImportStyle Style { System::Web::Services::Description::ServiceDescriptionImportStyle get(); void set(System::Web::Services::Description::ServiceDescriptionImportStyle value); };
public System.Web.Services.Description.ServiceDescriptionImportStyle Style { get; set; }
member this.Style : System.Web.Services.Description.ServiceDescriptionImportStyle with get, set
Public Property Style As ServiceDescriptionImportStyle

Wartość właściwości

ServiceDescriptionImportStyle

Jedna z ServiceDescriptionImportStyle wartości. Wartość domyślna to Client.

Przykłady

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

// Generate a proxy client.
importer->Style = ServiceDescriptionImportStyle::Client;
// Generate a proxy client.
importer.Style = ServiceDescriptionImportStyle.Client;

Uwagi

Style Jeśli właściwość jest ustawiona na Client, ServiceDescriptionImporter generuje klasy serwera proxy klienta, które zapewniają funkcjonalność opisanych usług sieci Web przez wywołanie ich.

Style Jeśli właściwość jest ustawiona na Serverwartość , ServiceDescriptionImporter wystąpienie generuje klasy abstrakcyjne reprezentujące funkcjonalność opisanych usług sieci Web XML bez ich implementacji. Następnie można je zaimplementować, pisząc klasy dziedziczone z tych klas abstrakcyjnych i implementując odpowiednie metody.

Dotyczy