Поделиться через


SoapMessage.OneWay Свойство

Определение

Возвращает значение, указывающее OneWay свойство либо SoapDocumentMethodAttribute атрибута, SoapRpcMethodAttribute примененного к методу веб-службы XML.

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

Значение свойства

Значение />, если свойство метода веб-службы XML или применено к методу веб-службы XML; в противном случае .

Примеры

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

Комментарии

Ознакомьтесь со свойством SoapDocumentMethodAttribute.OneWay или SoapRpcMethodAttribute подробными сведениями о методах SoapDocumentMethodAttribute односторонняя веб-служба XML.

Свойство OneWay доступно на всех этапах SoapMessageStage.

Применяется к

См. также раздел