Partager via


SoapMessage.OneWay Propriété

Définition

Obtient une valeur indiquant la OneWay propriété de l’attribut ou de l’attribut SoapDocumentMethodAttributeSoapRpcMethodAttribute appliqué à la méthode de service 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

Valeur de propriété

true si la OneWay propriété de la SoapDocumentMethodAttribute méthode de service Web XML ou SoapRpcMethodAttribute appliquée est true; sinon, false.

Exemples

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

Remarques

Consultez la propriété ou pour plus d’informations sur les SoapDocumentMethodAttribute.OneWay méthodes de SoapDocumentMethodAttributeSoapRpcMethodAttribute service web XML unidirectionnel.

La OneWay propriété est accessible à toutes les étapes de SoapMessageStage.

S’applique à

Voir aussi