MessageDescription.Direction Property

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

Gets the direction that indicates whether the message is incoming or outgoing.

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

Syntax

'Declaration
Public ReadOnly Property Direction As MessageDirection
public MessageDirection Direction { get; }

Property Value

Type: System.ServiceModel.Description.MessageDirection
The MessageDirection that indicates whether the message is incoming to or outgoing from the service.

Remarks

Incoming means that the message is coming from the client to the server. This is the Input direction. Outgoing means the message is coming from the server to the client. This is the Output direction. These terms can be confusing from the client perspective, where the messages marked as Input are actually being sent and the messages marked as Output are being received.

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.