WebServiceEndpoint.Security Property

.NET Framework (current version)

Gets the security settings used with this binding.

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

public WebHttpSecurity Security { get; }

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 4.0
Return to top