ServiceDescriptionCollection.GetMessage(XmlQualifiedName) Metod

Definition

Söker i ServiceDescriptionCollection och returnerar Message med det angivna namnet som är medlem i en av instanserna ServiceDescription i samlingen.

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

Parametrar

name
XmlQualifiedName

, XmlQualifiedNamesom skickas av referensen, vars Name egenskap delas av den Message returnerade.

Returer

Meddelandet med det angivna namnet.

Undantag

Den angivna Message är inte medlem i några ServiceDescription instanser i samlingen.

Exempel

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

// Get the Message from the collection.
myCollection->GetMessage( myXmlQualifiedName );
// Construct an XML qualified name.
XmlQualifiedName myXmlQualifiedName =
   new XmlQualifiedName("AddSoapIn", "http://tempuri2.org/");

// Get the Message from the collection.
Message  myMessage = myCollection.GetMessage(myXmlQualifiedName);
' Construct an XML qualified name.
Dim myXmlQualifiedName As _
   New XmlQualifiedName("AddSoapIn", "http://tempuri2.org/")

' Get the Message from the collection.
Dim myMessage As Message = myCollection.GetMessage(myXmlQualifiedName)

Gäller för