次の方法で共有


SoapMessage.OneWay プロパティ

定義

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

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

プロパティ値

trueXML Web サービス メソッドに適用されるSoapDocumentMethodAttributeまたはSoapRpcMethodAttributeOneWay プロパティが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 Web サービス メソッドの詳細については、SoapDocumentMethodAttributeまたはSoapRpcMethodAttributeSoapDocumentMethodAttribute.OneWayプロパティを参照してください。

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

適用対象

こちらもご覧ください