SoapMessage.OneWay プロパティ

定義

XML Web サービス メソッドに適用される OneWay 属性または SoapDocumentMethodAttribute 属性の SoapRpcMethodAttribute プロパティを示す値を取得します。

public:
 abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean

プロパティ値

XML Web サービス メソッドに適用される OneWay または SoapDocumentMethodAttributeSoapRpcMethodAttribute プロパティが true の場合は true。それ以外の場合は false

if ( message->OneWay )
{
   myStreamWriter->WriteLine(
      "The method invoked on the client shall not wait"
      + " till the server finishes" );
}
else
{
   myStreamWriter->WriteLine(
      "The method invoked on the client shall wait"
      + " till the server finishes" );
}
if(message.OneWay)
   myStreamWriter.WriteLine(
      "The method invoked on the client shall not wait"
      + " till the server finishes");
else
   myStreamWriter.WriteLine(
      "The method invoked on the client shall wait"
      + " till the server finishes");
If message.OneWay Then
   myStreamWriter.WriteLine( _
      "The method invoked on the client shall not wait" & _
      " till the server finishes")
Else
   myStreamWriter.WriteLine( _
      "The method invoked on the client shall wait" & _
      " till the server finishes")
End If

注釈

一方向 XML SoapDocumentMethodAttribute.OneWay Web サービス メソッドの SoapDocumentMethodAttribute 詳細については、 または SoapRpcMethodAttribute のプロパティを参照してください。

プロパティには OneWay 、 のすべての段階 SoapMessageStageでアクセスできます。

適用対象

こちらもご覧ください