SoapMessage.OneWay Proprietà

Definizione

Ottiene un valore che indica la proprietà OneWay dell'attributo SoapDocumentMethodAttribute o SoapRpcMethodAttribute applicato al metodo di servizio 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

Valore della proprietà

true se la proprietà OneWay dell'oggetto SoapDocumentMethodAttribute o SoapRpcMethodAttribute applicato al metodo di servizio Web XML è true; in caso contrario, false.

Esempio

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

Commenti

Vedere la SoapDocumentMethodAttribute.OneWay proprietà di SoapDocumentMethodAttribute o SoapRpcMethodAttribute per informazioni dettagliate sui metodi di servizio Web XML unidirezionale.

La OneWay proprietà è accessibile in tutte le fasi di SoapMessageStage.

Si applica a

Vedi anche