ServiceDescriptionCollection.GetPortType(XmlQualifiedName) Methode

Definitie

Zoekt de ServiceDescriptionCollection en retourneert de PortType met de opgegeven naam die lid is van een van de ServiceDescription exemplaren in de verzameling.

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

Parameters

name
XmlQualifiedName

De XmlQualifiedName, doorgegeven door verwijzing, waarvan Name de eigenschap wordt gedeeld door de PortType geretourneerde.

Retouren

De PortType met de opgegeven naam.

Uitzonderingen

De opgegeven PortType is geen lid van exemplaren ServiceDescription binnen de verzameling.

Voorbeelden

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

// Get the PortType from the collection.
myCollection->GetPortType( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
   new XmlQualifiedName("MathServiceSoap","http://tempuri2.org/");
// Get the PortType from the collection.
PortType myPort = myCollection.GetPortType(myXmlQualifiedName);
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
   New XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/")
' Get the PortType from the collection.
Dim myPort As PortType = myCollection.GetPortType(myXmlQualifiedName)

Van toepassing op