SecurityMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the security settings for a binding.
public enum class SecurityMode
public enum SecurityMode
type SecurityMode =
Public Enum SecurityMode
- Inheritance
Fields
Message | 2 | Security is provided using SOAP message security. |
None | 0 | Security is disabled. |
Transport | 1 | Security is provided using a secure transport (for example, HTTPS). |
TransportWithMessageCredential | 3 | A secure transport (for example, HTTPS) provides integrity, confidentiality, and authentication while SOAP message security provides client authentication. |
Examples
The following example sets the Mode
property of the WSHttpBinding. For more examples, see How to: Set the Security Mode.
WSHttpBinding b = new WSHttpBinding();
b.Security.Mode = SecurityMode.Transport;
Dim b As New WSHttpBinding()
b.Security.Mode = SecurityMode.Transport
Remarks
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 Windows Communication Foundation (WCF) 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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기