Export (0) Print
Expand All

WSHttpRelayBinding.CreateMessageSecurity Method

Returns the security binding element from the current binding.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

protected override SecurityBindingElement CreateMessageSecurity()

Return Value

Type: System.ServiceModel.Channels.SecurityBindingElement
Returns a SecurityBindingElement that contains the current binding.

CreateMessageSecurity() is used primarily by the system when interacting with custom bindings. If you inherit from WSHttpRelayBinding, you need to ensure that this method returns your default security binding properties. For many scenarios, this may be as simple as using the inherited version of the method with no modification. For more information on creating a custom binding, see Creating a Custom .NET Services Binding.

Community Additions

ADD
Show:
© 2015 Microsoft