ServiceDescriptionCollection.GetService(XmlQualifiedName) Método

Definición

ServiceDescriptionCollection Busca y devuelve con Service el nombre especificado que es miembro de una de las ServiceDescription instancias contenidas en la colección.

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

, XmlQualifiedNamepasado por referencia, cuya Name propiedad se comparte mediante el Service devuelto.

Devoluciones

Servicio con el nombre especificado.

Excepciones

El objeto especificado Service no es miembro de ninguna ServiceDescription instancia de la colección.

Ejemplos

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

Se aplica a