Compartir vía


SoapMessage.OneWay Propiedad

Definición

Obtiene un valor que indica la OneWay propiedad de o SoapDocumentMethodAttribute el SoapRpcMethodAttribute atributo aplicado al método de servicio 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 propiedad

truees si la OneWay propiedad de o SoapRpcMethodAttributeSoapDocumentMethodAttribute se aplica al método de servicio web XML es true; de lo contrario, falsees .

Ejemplos

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

Comentarios

Consulte la propiedad de o SoapRpcMethodAttribute para obtener más información sobre los SoapDocumentMethodAttribute.OneWay métodos de SoapDocumentMethodAttribute servicio web XML unidireccionales.

La OneWay propiedad es accesible en todas las fases de SoapMessageStage.

Se aplica a

Consulte también