Export (0) Print
Expand All

MessageDescription Constructor

Initializes a new instance of the MessageDescription class with a specified action and direction.

Namespace:  System.ServiceModel.Description
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

public MessageDescription(
	string action,
	MessageDirection direction
)

Parameters

action
Type: System.String

The action parameter of the SOAP message that identifies the intent of the message.

direction
Type: System.ServiceModel.Description.MessageDirection

Input if the message is incoming or Output if the message is outgoing.

ExceptionCondition
ArgumentOutOfRangeException

The direction is neither Input or Output.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft