MessageCollection::Add Method (Message^)
.NET Framework (current version)
Adds the specified Message to the end of the MessageCollection.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- message
-
Type:
System.Web.Services.Description::Message^
The Message to add to the collection.
Message^ myMessage = gcnew Message; myMessage->Name = "AddSoapOut"; MessagePart^ myMessagePart = gcnew MessagePart; myMessagePart->Name = "parameters"; myMessagePart->Element = gcnew XmlQualifiedName( "AddResponse",myServiceDescription->TargetNamespace ); myMessage->Parts->Add( myMessagePart ); myServiceDescription->Messages->Add( myMessage );
.NET Framework
Available since 1.1
Available since 1.1
Show: