SecurityMode Enumeration
Determines the security settings for a binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| None | Security is disabled. | |
| Transport | Security is provided using a secure transport (for example, HTTPS). | |
| Message | Security is provided using SOAP message security. | |
| TransportWithMessageCredential | A secure transport (for example, HTTPS) provides integrity, confidentiality, and authentication while SOAP message security provides client authentication. |
Any ProtectionLevel settings of a transport are ignored if the SecurityMode is set to None. For more information about the ProtectionLevel property, see Understanding Protection Level.
For more information about security and how this property affects general security features, see Securing Services and Programming WCF Security. For more information about the transport mode, see Transport Security.
Note that if you choose TransportWithMessageCredential, then the value set in HttpClientCredentialType or TcpClientCredentialType is ignored.
The following example sets the Mode property of the WSHttpBinding. For more examples, see How To: Set the Security Mode.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.