WSDualHttpSecurity.Mode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the security mode for the parent WSDualHttpBinding.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public WSDualHttpSecurityMode Mode { get; set; }

Property Value

Type: System.ServiceModel.WSDualHttpSecurityMode

A value from the WSDualHttpSecurityMode enumeration. The default is Message.

Exception Condition
ArgumentOutOfRangeException

The value is not a valid WSDualHttpSecurityMode.

The value of this property determines whether message-level security is applied to the binding.

The following code shows how to set this property.

WSDualHttpBinding binding3 = new WSDualHttpBinding();
binding3.Security.Mode = WSDualHttpSecurityMode.None;
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256;
binding3.MessageEncoding = WSMessageEncoding.Mtom;

.NET Framework
Available since 3.0
Return to top
Show: