Version Property
Collapse the table of content
Expand the table of content

Message.Version Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When overridden in a derived class, gets the SOAP and WS-Addressing versions of the message.

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

public abstract MessageVersion Version { get; }

Property Value

Type: System.ServiceModel.Channels.MessageVersion
A MessageVersion object that represents the SOAP and WS-Addressing versions used by the message.

ExceptionCondition
ObjectDisposedException

The message has been disposed of.

This value is immutable for the message. There are two possible value for the version: Soap11 which uses SOAP 1.1 and Soap12WSAddressing10 which uses SOAP 1.2 with WS-Addressing 1.0.

Knowing the underlying SOAP version is important because the structure of Message is firmly correlated with that of a SOAP message.

Important noteImportant Note:

Inheritors must note that when overridden in a derived class, this method returns a MessageVersion object for the SOAP version of the message.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft