Port.Extensions Property
.NET Framework 2.0
Gets the collection of extensibility elements associated with the Port.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: virtual property ServiceDescriptionFormatExtensionCollection^ Extensions { ServiceDescriptionFormatExtensionCollection^ get () override; }
/** @property */ public ServiceDescriptionFormatExtensionCollection get_Extensions ()
public override function get Extensions () : ServiceDescriptionFormatExtensionCollection
Not applicable.
Property Value
A ServiceDescriptionFormatExtensionCollection.// Create a Port. Port^ postPort = gcnew Port; postPort->Name = "PortServiceHttpPost"; postPort->Binding = gcnew XmlQualifiedName( "s0:PortServiceHttpPost" ); // Create an HttpAddressBinding. HttpAddressBinding^ postAddressBinding = gcnew HttpAddressBinding; postAddressBinding->Location = "http://localhost/PortClass/PortService_cs.asmx"; // Add the HttpAddressBinding to the Port. postPort->Extensions->Add( postAddressBinding );
// Create a Port.
Port postPort = new Port();
postPort.set_Name("PortServiceHttpPost");
postPort.set_Binding(
new XmlQualifiedName("s0:PortServiceHttpPost"));
// Create an HttpAddressBinding.
HttpAddressBinding postAddressBinding = new HttpAddressBinding();
postAddressBinding.set_Location(
"http://localhost/PortClass/PortService_jsl.asmx");
// Add the HttpAddressBinding to the Port.
postPort.get_Extensions().Add(postAddressBinding);
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: