SoapServerMessage.OneWay 属性

定义

获取一个值,该值指示客户端是否等待服务器处理完 XML Web services 方法。Gets a value indicating whether the client waits for the server to finish processing an XML Web service method.

public:
 virtual property bool OneWay { bool get(); };
public override bool OneWay { get; }
member this.OneWay : bool
Public Overrides ReadOnly Property OneWay As Boolean

属性值

Boolean

如果客户端等待服务器完成方法的处理,则为 true,否则为 falsetrue if the client waits for the server to completely process a method; otherwise, false.

示例

下面的代码片段是 SOAP 扩展的一部分,它记录 XML Web service 发送和接收的 SOAP 消息。The following code fragment is part of a SOAP extension that logs the SOAP messages sent and received by an XML Web service. 当属性为时,此特定片段会将一条指示 XML Web service 方法的短语输出到该日志文件 OneWay trueThis particular fragment outputs to that log file a phrase stating the XML Web service method is one-way, when the OneWay property is true.

注解

SoapDocumentMethodAttributeSoapRpcMethodAttribute 应用于 XML Web service 方法或 XML Web service 客户端可以通过设置特性的属性来指定 XML Web service 方法是否是一种方法 OneWayA SoapDocumentMethodAttribute or SoapRpcMethodAttribute applied to an XML Web service method or XML Web service client can specify whether the XML Web service method is one way or not by setting the OneWay property of the attribute.

OneWay可以在任何过程中访问属性 SoapMessageStageThe OneWay property can be accessed during any SoapMessageStage.

适用于