SoapMessage.OneWay Propriedade

Definição

Obtém um valor que indica a OneWay propriedade de ou SoapDocumentMethodAttribute o SoapRpcMethodAttribute atributo aplicado ao método do 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 de Propriedade

truese a OneWay propriedade de ou SoapDocumentMethodAttributeSoapRpcMethodAttribute aplicada ao método do serviço Web XML 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

Observações

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

A OneWay propriedade é acessível em todas as fases de SoapMessageStage.

Aplica-se a

Ver também