Version Property

Message.Version Property

 

When overridden in a derived class, gets the SOAP version of the message.

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

Public MustOverride ReadOnly Property Version As MessageVersion

Property Value

Type: System.ServiceModel.Channels.MessageVersion

A MessageVersion object that represents the SOAP version.

Exception Condition
ObjectDisposedException

The message has been disposed of.

This value is immutable for the message. There are two possible values for the version: Soap11 and Soap12 that correspond to SOAP 1.1 and SOAP 1.2 respectively.

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

System_CAPS_importantImportant

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

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft