This documentation is archived and is not being maintained.
Operation::Messages Property
Visual Studio 2010
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in System.Web.Services.dll)
public: property OperationMessageCollection^ Messages { OperationMessageCollection^ get (); }
Property Value
Type: System.Web.Services.Description::OperationMessageCollectionAn OperationMessageCollection.
Because an Operation is associated with exactly one OperationInput and exactly one OperationOutput, only one instance of each can be a member of this collection, and thus the collection can have a maximum of two members.
// Create an Operation. Operation^ myOperation = gcnew Operation; myOperation->Name = myOperationName; OperationMessage^ myInput = dynamic_cast<OperationMessage^>(gcnew OperationInput); myInput->Message = gcnew XmlQualifiedName( myInputMesg ); OperationMessage^ myOutput = dynamic_cast<OperationMessage^>(gcnew OperationOutput); myOutput->Message = gcnew XmlQualifiedName( myOutputMesg ); // Add messages to the OperationMessageCollection. myOperation->Messages->Add( myInput ); myOperation->Messages->Add( myOutput ); Console::WriteLine( "Operation name is: {0}", myOperation->Name );
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: