ServiceDescriptionCollection.GetBinding(XmlQualifiedName) Methode

Definition

Durchsucht und ServiceDescriptionCollection gibt den Binding angegebenen Namen zurück, der ein Element einer der ServiceDescription In der Auflistung enthaltenen Instanzen ist.

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

Parameter

name
XmlQualifiedName

Eine XmlQualifiedName Eigenschaft, deren Name Eigenschaft zum Abrufen einer Binding Instanz verwendet wird.

Gibt zurück

Die Bindung mit dem angegebenen Namen.

Ausnahmen

Das angegebene Binding Element ist kein Element von ServiceDescription Instanzen innerhalb der Auflistung.

Beispiele

// 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)

Gilt für: