NetTcpRelayBindingElement.Security Property


Gets a value from the App.config file that determines the type of security to be used with this binding.

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

public NetTcpRelaySecurityElement Security { get; }

Property Value

Type: Microsoft.ServiceBus.Configuration.NetTcpRelaySecurityElement

Returns a NetTcpRelaySecurityElement that contains the security settings for the associated binding. The default value is none.The NetTcpRelaySecurityElement you retrieve from the associated binding is created indirectly with a NetTcpRelayBinding. As such, after the binding is created, you cannot replace this object with a new object unless you also create a new binding. However, many members of WebHttpRelaySecurity can be set through security property. For more information on binding security, see the Security and Protection section. Along with the type of transport and encoding, the Security settings represent one of the three main properties that define this binding.

Return to top