Export (0) Print
Expand All

BinaryMessageEncodingBindingElement.MessageVersion Property

Gets or sets the SOAP message and WS-Addressing versions that are used or expected.

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

public override MessageVersion MessageVersion { get; set; }

Property Value

Type: System.ServiceModel.Channels.MessageVersion
The MessageVersion that is used or expected.

ExceptionCondition
ArgumentNullException

The value set is null.

ArgumentOutOfRangeException

The value set is an unsupported envelope version.

Specifies the versions of SOAP and WS-Addressing associated with a message and its exchange.

be.MessageVersion = MessageVersion.Default;

.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