Freigeben über


SoapMessage.OneWay-Eigenschaft

Ruft einen Wert ab, der die SoapDocumentMethodAttribute.OneWay-Eigenschaft des SoapDocumentMethodAttribute-Attributs oder des SoapRpcMethodAttribute-Attributs angibt, das auf die XML-Webdienstmethode angewendet wurde.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property OneWay As Boolean
'Usage
Dim instance As SoapMessage
Dim value As Boolean

value = instance.OneWay
public abstract bool OneWay { get; }
public:
virtual property bool OneWay {
    bool get () abstract;
}
/** @property */
public abstract boolean get_OneWay ()
public abstract function get OneWay () : boolean

Eigenschaftenwert

true, wenn die OneWay-Eigenschaft des auf die XML-Webdienstmethode angewendeten SoapDocumentMethodAttribute oder SoapRpcMethodAttribute auf true festgelegt ist. Andernfalls false.

Hinweise

Einzelheiten über unidirektionale XML-Webdienstmethoden finden Sie unter der SoapDocumentMethodAttribute.OneWay-Eigenschaft von SoapDocumentMethodAttribute oder SoapRpcMethodAttribute.

Auf die OneWay-Eigenschaft kann auf allen Stufen von SoapMessageStage zugegriffen werden.

Beispiel

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
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.get_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");
}

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

SoapMessage-Klasse
SoapMessage-Member
System.Web.Services.Protocols-Namespace
SoapDocumentMethodAttribute.OneWay-Eigenschaft
SoapDocumentMethodAttribute-Klasse
SoapRpcMethodAttribute