Compartir vía


SoapMessage.OneWay Propiedad

Definición

Obtiene un valor que indica la propiedad OneWay del atributo SoapDocumentMethodAttribute o del atributo SoapRpcMethodAttribute que se aplica al método de servicios 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

Boolean

Es true si la propiedad OneWay del atributo SoapDocumentMethodAttribute o del atributo SoapRpcMethodAttribute que se aplica al método de servicios Web XML es true; en caso contrario, es false.

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 SoapDocumentMethodAttribute.OneWay propiedad de SoapDocumentMethodAttribute o SoapRpcMethodAttribute para obtener más información sobre los métodos de servicio web XML unidireccionales.

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

Se aplica a

Consulte también