ServiceDescriptionCollection.GetService(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 Service com o nome especificado que é membro de uma das ServiceDescription instâncias contidas na coleção.
public:
System::Web::Services::Description::Service ^ GetService(System::Xml::XmlQualifiedName ^ name);
public System.Web.Services.Description.Service GetService(System.Xml.XmlQualifiedName name);
member this.GetService : System.Xml.XmlQualifiedName -> System.Web.Services.Description.Service
Public Function GetService (name As XmlQualifiedName) As Service
Parâmetros
- name
- XmlQualifiedName
O XmlQualifiedName, passado por referência, cuja Name propriedade é partilhada pelos Service retornados.
Devoluções
O serviço com o nome especificado.
Exceções
O especificado Service não faz parte de nenhuma ServiceDescription instância dentro da coleção.
Exemplos
// Construct an XML qualified name.
XmlQualifiedName^ myXmlQualifiedName =
gcnew XmlQualifiedName( "MathService","http://tempuri2.org/" );
// Get the Service from the collection.
myCollection->GetService( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
new XmlQualifiedName("MathService", "http://tempuri2.org/");
// Get the Service from the collection.
Service myService = myCollection.GetService(myXmlQualifiedName);
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
New XmlQualifiedName("MathService", "http://tempuri2.org/")
' Get the Service from the collection.
Dim myService As Service = myCollection.GetService(myXmlQualifiedName)