ServiceDescriptionCollection.GetPortType(XmlQualifiedName) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Pesquisa no ServiceDescriptionCollection e retorna o PortType com o nome especificado que é membro de uma das ServiceDescription instâncias contidas na coleção.
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
Parâmetros
- name
- XmlQualifiedName
O XmlQualifiedName, passado por referência, cuja Name propriedade é partilhada pelos PortType retornados.
Devoluções
O PortType com o nome especificado.
Exceções
O especificado PortType não faz parte de nenhuma ServiceDescription instância dentro da coleção.
Exemplos
// 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)