Share via


OperationDescription.IsOneWay Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether an operation returns a reply message.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Syntax

'Declaration
Public ReadOnly Property IsOneWay As Boolean
public bool IsOneWay { get; }

Property Value

Type: System.Boolean
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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.