WSDualHttpSecurity.Message 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 the message-level security properties for the WSDualHttpBinding.

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

public MessageSecurityOverHttp Message { get; set; }

The object returned specifies detailed message-level security properties for the wsDualHttpBinding binding.

The following code shows how to set the AlgorithmSuite property by accessing 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: