Export (0) Print
Expand All

Port.Binding Property

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft