SoapMessage.GetInParameterValue(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 parameter passed into the XML Web service method at the specified index.
public:
System::Object ^ GetInParameterValue(int index);
public object GetInParameterValue (int index);
member this.GetInParameterValue : int -> obj
Public Function GetInParameterValue (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 less than 0 or greater than the length of the parameters array.
Accessing this property when in parameters are not available.
Examples
myStreamWriter->WriteLine( "The values of the in parameters are:" );
myStreamWriter->WriteLine(
"Value of first in parameter: {0}", message->GetInParameterValue( 0 ) );
myStreamWriter->WriteLine(
"Value of second in parameter: {0}", message->GetInParameterValue( 1 ) );
myStreamWriter.WriteLine("The values of the in parameters are:");
myStreamWriter.WriteLine("Value of first in parameter: {0}",
message.GetInParameterValue(0));
myStreamWriter.WriteLine("Value of second in parameter: {0}",
message.GetInParameterValue(1));
myStreamWriter.WriteLine("The values of the in parameters are:")
myStreamWriter.WriteLine("Value of first in parameter: {0}", _
message.GetInParameterValue(0))
myStreamWriter.WriteLine("Value of second in parameter: {0}", _
message.GetInParameterValue(1))
Remarks
The GetInParameterValue property is only accessible when in parameters are available. ASP.NET throws InvalidOperationException when accessing the GetInParameterValue property if in parameters are not available.
In a SoapClientMessage the in parameters are available in the BeforeSerializeSoapMessageStage. In a SoapServerMessage the in parameters are available in the AfterDeserializeSoapMessageStage.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기