SoapMessage::GetOutParameterValue Method
Gets the out parameter passed into the XML Web service method at the specified index.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- index
- Type: System::Int32
The zero-based index of the parameter in the array of parameters.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | The index parameter is greater than the length of the parameters array. |
| InvalidOperationException | Accessing this property when out parameters are not available. For details see the Remarks section. |
If out parameters are not available, ASP.NET throws an InvalidOperationException when accessing the GetOutParameterValue property.
In a SoapClientMessage the out parameters are available in the AfterDeserialize SoapMessageStage. In a SoapServerMessage the out parameters are available in the BeforeSerialize of the SoapMessageStage.
myStreamWriter->WriteLine( "The values of the out parameter are:" ); myStreamWriter->WriteLine( "The value of the out parameter is: {0}", message->GetOutParameterValue( 0 ) );
myStreamWriter->WriteLine(S"The values of the out parameter are:");
myStreamWriter->WriteLine(S"The value of the out parameter is: {0}",
message->GetOutParameterValue(0));
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.