次の方法で共有


SoapMessage.Stage プロパティ

定義

SoapMessageStageSoapMessage を取得します。

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

プロパティ値

SoapMessageSoapMessageStage

次のコード例は、 メソッド内で を SoapMessageStage 決定する方法を SoapExtension.ProcessMessage 示しています。

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

注釈

プロパティには Stage 、任意 SoapMessageStageの でアクセスできます。

適用対象