This documentation is archived and is not being maintained.

MessageSecurityVersion Class

An abstract container class that, when implemented by several of its static properties, contains version information for security components.

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

public abstract class MessageSecurityVersion

This class is the extensibility point for customizing token serialization.

This class is a singleton that provides information about the versions of the security specifications, (WS-Security, WS-Trust, WS-Secure Conversation and WS-Security Policy), that must be supported by a binding.

The class contains seven static properties, each of which returns an instance of this class. Each of these properties represents a different combination of security specification versions. The instances of this class are used as parameters in the Create…CertificateBindingElement method calls on the SecurityBindingElement class. If you pass the Default property, you create a standard version of the binding element. To create a non-standard version, pass the property that matches your version.

The class also contains abstract properties that are implemented by the previous instances.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

.NET Compact Framework

Supported in: 3.5