ServiceDescriptionCollection.GetMessage(XmlQualifiedName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET