Port::Extensions Property
.NET Framework (current version)
Gets the collection of extensibility elements associated with the Port.
Assembly: System.Web.Services (in System.Web.Services.dll)
public: property ServiceDescriptionFormatExtensionCollection^ Extensions { virtual ServiceDescriptionFormatExtensionCollection^ get() override; }
Property Value
Type: System.Web.Services.Description::ServiceDescriptionFormatExtensionCollection^The collection of extensibility elements associated with the port.
// 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 );
.NET Framework
Available since 1.1
Available since 1.1
Show: