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

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

Значение true, если свойство OneWay атрибута SoapDocumentMethodAttribute или атрибута SoapRpcMethodAttribute, примененного к методу XML-веб-службы, равно 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

Комментарии

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

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

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

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