Port.Binding Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the value of the XML <binding> attribute of the Port.

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

public XmlQualifiedName Binding { get; set; }

Property Value

Type: System.Xml.XmlQualifiedName

The value of the XML binding.

A binding defines message format and protocol details for operations and messages for a PortType. This property gets or sets those values for a specific Port.

// Create a Port.
Port postPort = new Port();
postPort.Name = "PortServiceHttpPost";
postPort.Binding = new XmlQualifiedName("s0:PortServiceHttpPost");

.NET Framework
Available since 1.1
Return to top