Modifica

Condividi tramite


ServiceDescriptionCollection.GetMessage(XmlQualifiedName) Method

Definition

Searches the ServiceDescriptionCollection and returns the Message with the specified name that is a member of one of the ServiceDescription instances contained in the collection.

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

Parameters

name
XmlQualifiedName

The XmlQualifiedName, passed by reference, whose Name property is shared by the Message returned.

Returns

The message with the specified name.

Exceptions

The specified Message is not a member of any ServiceDescription instances within the collection.

Examples

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

Applies to