ServiceDescriptionCollection.GetBinding(XmlQualifiedName) Metod

Definition

Söker i ServiceDescriptionCollection och returnerar Binding med det angivna namnet som är medlem i en av instanserna ServiceDescription i samlingen.

public:
 System::Web::Services::Description::Binding ^ GetBinding(System::Xml::XmlQualifiedName ^ name);
public System.Web.Services.Description.Binding GetBinding(System.Xml.XmlQualifiedName name);
member this.GetBinding : System.Xml.XmlQualifiedName -> System.Web.Services.Description.Binding
Public Function GetBinding (name As XmlQualifiedName) As Binding

Parametrar

name
XmlQualifiedName

En XmlQualifiedName vars Name egenskap används för att hämta en Binding instans.

Returer

Bindningen med det angivna namnet.

Undantag

Den angivna Binding är inte medlem i några ServiceDescription instanser i samlingen.

Exempel

// Construct an XML qualified name.
XmlQualifiedName^ myXmlQualifiedName =
   gcnew XmlQualifiedName( "MathServiceSoap","http://tempuri2.org/" );

// Get the Binding from the collection.
myCollection->GetBinding( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
   new XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/");

// Get the Binding from the collection.
Binding myBinding = myCollection.GetBinding(myXmlQualifiedName);
' 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)

Gäller för