OperationDescription.IsOneWay Property
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
true
if this method receives a request message and returns no reply message; otherwise, false
. The default is false
.
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.
Proizvod | Verzije |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: