WebHttpBinding.Security Property


Gets the security settings used with this binding.

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

member Security : WebHttpSecurity with get, set

Property Value

Type: System.ServiceModel.WebHttpSecurity

The WebHttpSecurity that is used with this binding. The default value is None.

To use a non-default type of security, use the WebHttpBinding(WebHttpSecurityMode) constructor.


If you set this property to TransportCredentialOnly and you are using HTTP, be aware that credentials are sent over the wire in plain text.

.NET Framework
Available since 3.5
Return to top