SoapMessage.OneWay Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.