ServiceDescriptionCollection.GetMessage Method (XmlQualifiedName)

 

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.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public Message GetMessage(
	XmlQualifiedName name
)

Parameters

name
Type: System.Xml.XmlQualifiedName

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

Return Value

Type: System.Web.Services.Description.Message

The message with the specified name.

Exception Condition
Exception

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

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

// Get the Message from the collection.
Message  myMessage = myCollection.GetMessage(myXmlQualifiedName);

.NET Framework
Available since 1.1
Return to top
Show: