Partager via


SoapMessage.Stage Propriété

Définition

Obtient le SoapMessageStage de SoapMessage.

public:
 property System::Web::Services::Protocols::SoapMessageStage Stage { System::Web::Services::Protocols::SoapMessageStage get(); };
public System.Web.Services.Protocols.SoapMessageStage Stage { get; }
member this.Stage : System.Web.Services.Protocols.SoapMessageStage
Public ReadOnly Property Stage As SoapMessageStage

Valeur de propriété

SoapMessageStage du SoapMessage.

Exemples

L’exemple de code suivant montre comment déterminer le SoapMessageStage dans la SoapExtension.ProcessMessage méthode .

public:
   virtual void ProcessMessage( SoapMessage^ message ) override
   {
      switch ( message->Stage )
      {
         case SoapMessageStage::BeforeSerialize:
            break;

         case SoapMessageStage::AfterSerialize:
            WriteOutput( message );
            break;

         case SoapMessageStage::BeforeDeserialize:
            WriteInput( message );
            break;

         case SoapMessageStage::AfterDeserialize:
            break;


      }
   }
public override void ProcessMessage(SoapMessage message) {
        switch (message.Stage) {

        case SoapMessageStage.BeforeSerialize:
            break;

        case SoapMessageStage.AfterSerialize:
            WriteOutput( message );
            break;

        case SoapMessageStage.BeforeDeserialize:
            WriteInput( message );
            break;

        case SoapMessageStage.AfterDeserialize:
            break;
        }
}
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

Remarques

La Stage propriété est accessible à n’importe quel emplacement SoapMessageStage.

S’applique à