This documentation is archived and is not being maintained.

SoapMessage::GetInParameterValue Method

Gets the parameter passed into the XML Web service method at the specified index.

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
Object^ GetInParameterValue(
	int index
)

Parameters

index
Type: System::Int32

The zero-based index of the parameter in the array of parameters.

Return Value

Type: System::Object
An Object representing the parameter at the specified index.

ExceptionCondition
IndexOutOfRangeException

The index parameter is less than 0 or greater than the length of the parameters array.

InvalidOperationException

Accessing this property when in parameters are not available. For details see the Remarks section.

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 BeforeSerialize SoapMessageStage. In a SoapServerMessage the in parameters are available in the AfterDeserialize SoapMessageStage.

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(S"The values of the in parameters are:");
myStreamWriter->WriteLine(S"Value of first in parameter: {0}",
   message->GetInParameterValue(0));
myStreamWriter->WriteLine(S"Value of second in parameter: {0}",
   message->GetInParameterValue(1));

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.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0
Show: