This documentation is archived and is not being maintained.

MessageEncoderFactory.MessageVersion Property

When overridden in a derived class, gets the message version that is used by the encoders produced by the factory to encode messages.

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

public abstract MessageVersion MessageVersion { get; }
/** @property */
public abstract MessageVersion get_MessageVersion ()

public abstract function get MessageVersion () : MessageVersion

Not applicable.

Property Value

The MessageVersion used by the factory.

The message version can be set using the MessageVersion property. MessageVersion is limited to using certain versions of SOAP and WS-Addressing and is not extensible. So if these versions are not to be used, this property should be overridden to return MessageVersion.None.

The following code illustrates how to implement the MessageVersion property:

public override MessageVersion MessageVersion
{
    get 
    { 
        return this.version;
    }
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: