SoapServerMessage.OneWay Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
true
if the client waits for the server to completely process a method; otherwise, false
.
Examples
The following code fragment is part of a SOAP extension that logs the SOAP messages sent and received by an XML Web service. This particular fragment outputs to that log file a phrase stating the XML Web service method is one-way, when the OneWay property is true
.
Remarks
A 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.
The OneWay property can be accessed during any SoapMessageStage.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應