SoapMessage.Stage Property

 

Gets the SoapMessageStage of the SoapMessage.

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

Public ReadOnly Property Stage As SoapMessageStage

The Stage property can be accessed at any SoapMessageStage.

The following code example demonstrates how to determine the SoapMessageStage within the SoapExtension.ProcessMessage method.

Public Overrides Sub ProcessMessage(message As SoapMessage)
    Select Case message.Stage

        Case SoapMessageStage.BeforeSerialize

        Case SoapMessageStage.AfterSerialize
            WriteOutput(message)

        Case SoapMessageStage.BeforeDeserialize
            WriteInput(message)

        Case SoapMessageStage.AfterDeserialize

    End Select
End Sub    

.NET Framework
Available since 1.1
Return to top
Show: