ServiceDescriptionCollection.GetBinding Method (XmlQualifiedName)

 

Searches the ServiceDescriptionCollection and returns the Binding with the specified name that is a member of one of the ServiceDescription instances contained in the collection.

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

Public Function GetBinding (
	name As XmlQualifiedName
) As Binding

Parameters

name
Type: System.Xml.XmlQualifiedName

An XmlQualifiedName whose Name property is used to retrieve a Binding instance.

Return Value

Type: System.Web.Services.Description.Binding

The binding with the specified name.

Exception Condition
Exception

The specified Binding is not a member of any ServiceDescription instances within the collection.

' Construct an XML qualified name.
Dim myXmlQualifiedName As _
   New XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/")

' Get the Binding from the collection.
Dim myBinding As Binding = _
   myCollection.GetBinding(myXmlQualifiedName)

.NET Framework
Available since 1.1
Return to top
Show: