SoapMessage.OneWay Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera wartość wskazującą OneWay właściwość SoapDocumentMethodAttribute lub SoapRpcMethodAttribute atrybut zastosowany do metody usługi sieci 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
Wartość właściwości
true
OneWay jeśli właściwość SoapDocumentMethodAttribute lub SoapRpcMethodAttribute zastosowana do metody usługi sieci Web XML to true; w przeciwnym razie false.
Przykłady
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
Uwagi
SoapDocumentMethodAttribute.OneWay Zobacz właściwość SoapDocumentMethodAttribute lubSoapRpcMethodAttribute, aby uzyskać szczegółowe informacje na temat jednokierunkowych metod usługi sieci Web XML.
Właściwość OneWay jest dostępna we wszystkich etapach .SoapMessageStage