OperationDescription.IsOneWay 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 or sets a value that indicates whether an operation returns a reply message.
public:
property bool IsOneWay { bool get(); };
public bool IsOneWay { get; }
member this.IsOneWay : bool
Public ReadOnly Property IsOneWay As Boolean
Property Value
true
if this method receives a request message and returns no reply message; otherwise, false
. The default is false
.
Remarks
Use the IsOneWay property to indicate that an operation does not return a reply message. This type of operation is useful for notifications or event-style communication, especially in two-way communication.
If the IsOneWay property is set to false
(the default), even methods that return void
result in a reply message. In this case, the infrastructure creates and sends an empty message to indicate to the caller that the method has returned.
IsTerminating corresponds to the IsOneWay property in the Windows Communication Foundation (WCF) programming model.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기