An abstract class that, when implemented, represents a binding element that supports channel SOAP message security.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
This class is the base class for the SOAP message security binding elements in WCF. There are three implementations of this abstract class: SymmetricSecurityBindingElement, AsymmetricSecurityBindingElement, and TransportSecurityBindingElement. These implementations model the bindings defined in the WS-Security Policy specification.
A custom binding contains a collection of binding elements arranged in a specific order: the element that represents the top of the binding stack is added first, the next element down in the binding stack is added second, and so on.
To add this class to a binding, do the following:
Create a BindingElementCollection.
Add the derived security binding element to the collection.
Add any additional custom binding elements to the collection, such as TcpTransportBindingElement.
For more information about using a , see SecurityBindingElement Authentication Modes and How To: Create a Custom Binding Using the SecurityBindingElement.
Once a object is created, you should treat its properties as immutable. Calling set on some properties may have unpredictable effects: the binding may behave as if the property retained its old value, with a runtime failure being the only indication of an issue. Two properties known to behave this way are KeyType and MessageSecurityVersion. There may be other properties of which this is also true.
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.