This documentation is archived and is not being maintained.

Port.Binding Property

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

[Visual Basic]
Public Property Binding As XmlQualifiedName
[C#]
public XmlQualifiedName Binding {get; set;}
[C++]
public: __property XmlQualifiedName* get_Binding();
public: __property void set_Binding(XmlQualifiedName*);
[JScript]
public function get Binding() : XmlQualifiedName;
public function set Binding(XmlQualifiedName);

Property Value

An XmlQualifiedName.

Remarks

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.

Example

[Visual Basic] 

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


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

[C++] 
// Create a Port.
Port* postPort = new Port();
postPort->Name = S"PortServiceHttpPost";
postPort->Binding = new XmlQualifiedName(S"s0:PortServiceHttpPost");

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Port Class | Port Members | System.Web.Services.Description Namespace

Show: