SecurityBindingElement Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
An abstract class that, when implemented, represents a binding element that supports channel SOAP message security.
Inheritance Hierarchy
System.Object
System.ServiceModel.Channels.BindingElement
System.ServiceModel.Channels.SecurityBindingElement
System.ServiceModel.Channels.TransportSecurityBindingElement
Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public MustInherit Class SecurityBindingElement _
Inherits BindingElement
public abstract class SecurityBindingElement : BindingElement
The SecurityBindingElement type exposes the following members.
Properties
Name | Description | |
---|---|---|
IncludeTimestamp | Gets or sets a value that indicates whether time stamps are included in each message. | |
LocalClientSettings | Gets the binding properties specific to local security settings used by the client. |
Top
Methods
Name | Description | |
---|---|---|
BuildChannelFactory<TChannel> | Creates a channel factory based on the SecurityBindingElement settings and the binding context passed in. The channel factory created is a SOAP message security channel factory, which internally has a reference to the channel factory that corresponds to the binding context (which includes the transport channel factory). (Overrides BindingElement.BuildChannelFactory<TChannel>(BindingContext).) | |
BuildChannelFactoryCore<TChannel> | When implemented in a derived class, creates a channel factory of a specified type. | |
CanBuildChannelFactory<TChannel> | Gets a value that indicates whether a channel factory of the specified type can be built. (Overrides BindingElement.CanBuildChannelFactory<TChannel>(BindingContext).) | |
Clone | When overridden in a derived class, returns a copy of the binding element object. (Inherited from BindingElement.) | |
CreateUserNameOverTransportBindingElement | Creates a security binding element that is configured for client authentication based on a user name and password sent as part of the SOAP message. The binding element requires the transport to provide server authentication and message protection (for example, HTTPS). | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetProperty<T> | Gets a specified object using the BindingContext specified. (Overrides BindingElement.GetProperty<T>(BindingContext).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
This class is the base class for the SOAP message security binding elements in Silverlight. The TransportSecurityBindingElement class derives from this class.
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.