SoapMessage.GetOutParameterValue(Int32) Method
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.
Gets the out parameter passed into the XML Web service method at the specified index.
public:
System::Object ^ GetOutParameterValue(int index);
public object GetOutParameterValue(int index);
member this.GetOutParameterValue : int -> obj
Public Function GetOutParameterValue (index As Integer) As Object
- index
- Int32
The zero-based index of the parameter in the array of parameters.
An Object representing the parameter at the specified index.
The index
parameter is greater than the length of the parameters array.
Accessing this property when out parameters are not available.
myStreamWriter->WriteLine( "The values of the out parameter are:" );
myStreamWriter->WriteLine(
"The value of the out parameter is: {0}", message->GetOutParameterValue( 0 ) );
myStreamWriter.WriteLine("The values of the out parameter are:");
myStreamWriter.WriteLine("The value of the out parameter is: {0}",
message.GetOutParameterValue(0));
myStreamWriter.WriteLine("The values of the out parameter are:")
myStreamWriter.WriteLine("The value of the out parameter is: {0}", _
message.GetOutParameterValue(0))
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 AfterDeserializeSoapMessageStage. In a SoapServerMessage the out parameters are available in the BeforeSerialize of the SoapMessageStage.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: