Compartilhar via


SoapMessage.OneWay Propriedade

Definição

Obtém um valor que indica a propriedade OneWay do atributo SoapDocumentMethodAttribute ou SoapRpcMethodAttribute aplicado ao método de serviço Web XML.

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

Valor da propriedade

Boolean

true se a OneWay propriedade do SoapDocumentMethodAttribute método de serviço Web XML ou SoapRpcMethodAttribute aplicada for true; caso contrário, false.

Exemplos

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

Comentários

Consulte a SoapDocumentMethodAttribute.OneWay propriedade de SoapDocumentMethodAttribute ou SoapRpcMethodAttribute para obter detalhes sobre métodos de serviço Web XML unidirecionais.

A OneWay propriedade é acessível em todos os estágios de SoapMessageStage.

Aplica-se a

Confira também