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.

[Visual Basic]
Public Function GetInParameterValue( _
   ByVal index As Integer _
) As Object
[C#]
public object GetInParameterValue(
 int index
);
[C++]
public: Object* GetInParameterValue(
 int index
);
[JScript]
public function GetInParameterValue(
   index : int
) : Object;

Parameters

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

Return Value

An Object representing the parameter at the specified index.

Exceptions

Exception Type Condition
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.

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SoapMessage Class | SoapMessage Members | System.Web.Services.Protocols Namespace | GetOutParameterValue | GetReturnValue | Object

Show: