MessageVersion.CreateVersion Method (EnvelopeVersion)


Creates a message version object by using WS-Addressing 1.0 and with a specified SOAP version.

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

public static MessageVersion CreateVersion(
	EnvelopeVersion envelopeVersion


Type: System.ServiceModel.EnvelopeVersion

The EnvelopeVersion that indicates the SOAP version to be used.

Return Value

Type: System.ServiceModel.Channels.MessageVersion

The MessageVersion using the specified version of SOAP and WS-Addressing 1.0.

Exception Condition

The envelopeVersion is null.

The SOAP versions currently available are SOAP 1.1 and SOAP 1.2. There is an EnvelopeVersion for each version of SOAP that contains the data relevant to its use.

msgVersion = MessageVersion.CreateVersion(envVersion);

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top