NetMsmqSecurityMode 枚举

定义

NetMsmqSecurityMode 枚举指定可供 MSMQ 传输使用的安全模式。The NetMsmqSecurityMode enumeration specifies security modes that can be used by the MSMQ transport.

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

字段

Both 3

同时启用 MSMQ 传输安全和 SOAP 安全。Enables both MSMQ transport security and SOAP security.

Message 2

启用 SOAP 安全。Enables SOAP security.

None 0

同时禁用 MSMQ 传输安全和 SOAP 安全。Disables both MSMQ transport security and SOAP security.

Transport 1

启用 MSMQ 传输安全。Enables MSMQ transport security.

示例

下面的代码演示如何指定 NetMsmqBinding 绑定的安全模式。The following code shows how to specify the security mode for a NetMsmqBinding binding.

NetMsmqBinding binding = new NetMsmqBinding();
    NetMsmqSecurity security = binding.Security;

注解

MSMQ 传输安全使用 MSMQ 保护消息。MSMQ transport security secures messages using MSMQ. SOAP 安全使用 WS-* 安全协议保护消息。SOAP security secures messages using the WS-* security protocols. 此属性确定获得传输安全功能(如完整性、机密性和身份验证)的机制。This property determines the mechanisms by which transfer security functions (such as integrity, confidentiality and authentication) are obtained.

适用于