OperationDescription.IsOneWay Property

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

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

public bool IsOneWay { get; }
/** @property */
public boolean get_IsOneWay ()

public function get IsOneWay () : boolean

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions