Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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
)

Parameters

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
ArgumentNullException

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.

No code example is currently available or this language may not be supported.

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