WSDualHttpSecurityMode 枚举

定义

WSDualHttpBinding 指定不同的安全模式。Specifies the different security modes for WSDualHttpBinding.

public enum class WSDualHttpSecurityMode
public enum WSDualHttpSecurityMode
type WSDualHttpSecurityMode = 
Public Enum WSDualHttpSecurityMode
继承
WSDualHttpSecurityMode

字段

Message 1

使用 SOAP 消息级安全性,并且 Message 属性中的设置将有效。SOAP message-level security is used and the settings in the Message property become effective.

None 0

未使用任何安全性。No security is used.

示例

下面的代码演示如何将 WSDualHttpSecurity.Mode 设置为此枚举的成员。The following code shows how to set WSDualHttpSecurity.Mode to a member of this enumeration.

WSDualHttpBinding binding3 = new WSDualHttpBinding();
binding3.Security.Mode = WSDualHttpSecurityMode.None;
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256;
binding3.MessageEncoding = WSMessageEncoding.Mtom;
Dim binding3 As New WSDualHttpBinding()
binding3.Security.Mode = WSDualHttpSecurityMode.None
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256
binding3.MessageEncoding = WSMessageEncoding.Mtom

注解

此枚举定义 System.ServiceModel.WSDualHttpBinding 支持的安全模式。This enumeration defines the security modes that the System.ServiceModel.WSDualHttpBinding supports.

适用于