ServiceDescriptionCollection.GetService(XmlQualifiedName) Método
Definição
Pesquisa a ServiceDescriptionCollection e retorna o Service com o nome que é um membro de uma das instâncias de ServiceDescription contidas na coleção.Searches the ServiceDescriptionCollection and returns the Service with the specified name that is a member of one of the ServiceDescription instances contained in the collection.
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 propriedade Name é compartilhada pelo Service retornado.The XmlQualifiedName, passed by reference, whose Name property is shared by the Service returned.
Retornos
O serviço com o nome especificado.The service with the specified name.
Exceções
O Service especificado não é um membro de nenhuma instância de ServiceDescription dentro da coleção.The specified Service is not a member of any ServiceDescription instances within the collection.
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)