This documentation is archived and is not being maintained.
ServiceDescriptionImporter.ProtocolName Property
.NET Framework 1.1
Gets or sets the name of the protocol to be imported.
[Visual Basic] Public Property ProtocolName As String [C#] public string ProtocolName {get; set;} [C++] public: __property String* get_ProtocolName(); public: __property void set_ProtocolName(String*); [JScript] public function get ProtocolName() : String; public function set ProtocolName(String);
Property Value
The name of the protocol to be imported.
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, "", "") ' Set the protocol name. myImporter.ProtocolName = "Soap" Console.WriteLine("ProtocolName : " + myImporter.ProtocolName) [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, "", ""); // Set the protocol name. myImporter.ProtocolName = "Soap"; Console.WriteLine("ProtocolName : " + myImporter.ProtocolName); [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""); // Set the protocol name. myImporter->ProtocolName = S"Soap"; Console::WriteLine(S"ProtocolName : {0}", myImporter->ProtocolName);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
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: