This documentation is archived and is not being maintained.
OperationMessage.Operation Property
.NET Framework 1.1
Gets the Operation of which the OperationMessage is a member.
[Visual Basic] Public ReadOnly Property Operation As Operation [C#] public Operation Operation {get;} [C++] public: __property Operation* get_Operation(); [JScript] public function get Operation() : Operation;
Property Value
An Operation.
Example
[Visual Basic] Dim myInputOperationMessage As OperationMessage = _ CType(New OperationInput(), OperationMessage) Dim myXmlQualifiedName As New XmlQualifiedName("AddSoapIn", _ myDescription.TargetNamespace) myInputOperationMessage.Message = myXmlQualifiedName myOperationMessageCollection.Insert(0, myInputOperationMessage) ' Display the operation name of the InputMessage. Console.WriteLine("The operation name is " & _ myInputOperationMessage.Operation.Name) [C#] OperationMessage myInputOperationMessage = (OperationMessage) new OperationInput(); XmlQualifiedName myXmlQualifiedName = new XmlQualifiedName( "AddSoapIn", myDescription.TargetNamespace); myInputOperationMessage.Message = myXmlQualifiedName; myOperationMessageCollection.Insert(0, myInputOperationMessage); // Display the operation name of the InputMessage. Console.WriteLine("The operation name is " + myInputOperationMessage.Operation.Name); [C++] OperationMessage* myInputOperationMessage = dynamic_cast<OperationMessage*> (new OperationInput()); XmlQualifiedName* myXmlQualifiedName = new XmlQualifiedName( S"AddSoapIn", myDescription->TargetNamespace); myInputOperationMessage->Message = myXmlQualifiedName; myOperationMessageCollection->Insert(0, myInputOperationMessage); // Display the operation name of the InputMessage. Console::WriteLine(S"The operation name is {0}", myInputOperationMessage->Operation->Name);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
OperationMessage Class | OperationMessage Members | System.Web.Services.Description Namespace
Show: