Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ServiceDescriptionImporter.Style Property

Gets or sets the ServiceDescriptionImportStyle associated with the ServiceDescriptionImporter instance.

[Visual Basic]
Public Property Style As ServiceDescriptionImportStyle
[C#]
public ServiceDescriptionImportStyle Style {get; set;}
[C++]
public: __property ServiceDescriptionImportStyle get_Style();
public: __property void set_Style(ServiceDescriptionImportStyle);
[JScript]
public function get Style() : ServiceDescriptionImportStyle;
public function set Style(ServiceDescriptionImportStyle);

Property Value

One of the ServiceDescriptionImportStyle values. The default is Client.

Example

[Visual Basic] 
' Create a ServiceDescription by reading a .wsdl file.
Dim myServiceDescription As ServiceDescription = _
                           ServiceDescription.Read("Sample_vb.wsdl")
Dim myImporter As New ServiceDescriptionImporter()
' Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter.AddServiceDescription(myServiceDescription, "", "")
myImporter.ProtocolName = "Soap"

Console.WriteLine("ProtocolName: " + myImporter.ProtocolName)
Console.WriteLine("Style: " + myImporter.Style.ToString())

[C#] 
// Create a ServiceDescription by reading a .wsdl file.
ServiceDescription myServiceDescription = 
                   ServiceDescription.Read("Sample_CS.wsdl");
ServiceDescriptionImporter myImporter = 
                           new ServiceDescriptionImporter();
// Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter.AddServiceDescription(myServiceDescription, "", "");
myImporter.ProtocolName = "Soap";

Console.WriteLine("ProtocolName: " + myImporter.ProtocolName);
Console.WriteLine("Style: " + myImporter.Style.ToString());

[C++] 
// Create a ServiceDescription by reading a .wsdl file.
ServiceDescription* myServiceDescription =
   ServiceDescription::Read(S"Sample_cpp..wsdl");
ServiceDescriptionImporter* myImporter = new ServiceDescriptionImporter();
// Add the ServiceDescription to the ServiceDescriptionImporter.
myImporter->AddServiceDescription(myServiceDescription, S"", S"");
myImporter->ProtocolName = S"Soap";

Console::WriteLine(S"ProtocolName: {0}", myImporter->ProtocolName);
Console::WriteLine(S"Style: {0}",__box( myImporter->Style));

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ServiceDescriptionImporter Class | ServiceDescriptionImporter Members | System.Web.Services.Description Namespace

Show:
© 2015 Microsoft