Port.Extensions Property

 

Gets the collection of extensibility elements associated with the Port.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public Overrides ReadOnly Property Extensions As ServiceDescriptionFormatExtensionCollection

Property Value

Type: System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection

The collection of extensibility elements associated with the port.


' Create a Port.
Dim postPort As New Port()
postPort.Name = "PortServiceHttpPost"
postPort.Binding = New XmlQualifiedName("s0:PortServiceHttpPost")


' Create an HttpAddressBinding.
Dim postAddressBinding As New HttpAddressBinding()
postAddressBinding.Location = _
   "http://localhost/PortClass/PortService.vb.asmx"

' Add the HttpAddressBinding to the Port.
postPort.Extensions.Add(postAddressBinding)

.NET Framework
Available since 1.1
Return to top
Show: