SoapMessage.GetOutParameterValue(Int32) Method
Definition
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
Parameters
- index
- Int32
The zero-based index of the parameter in the array of parameters.
Returns
An Object representing the parameter at the specified index.
Exceptions
The index
parameter is greater than the length of the parameters array.
Accessing this property when out parameters are not available.
Examples
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))
Remarks
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.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈