WSDualHttpBinding.Security Property

Definition

Gets an object that specifies the security settings used with this binding.

C#
public System.ServiceModel.WSDualHttpSecurity Security { get; }
C#
public System.ServiceModel.WSDualHttpSecurity Security { get; set; }

Property Value

The WSDualHttpSecurity that specifies security settings used with the binding. The default value of WSDualHttpSecurityMode is Message.

Examples

The following example shows how to get the type of security of the binding.

C#
WSDualHttpSecurity security = binding.Security;

Remarks

A dual binding exposes the IP address of the client to the service. The client should use security to ensure that it only connects to services it trusts.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1