NetMsmqBinding.Security 属性

定义

获取或设置与此绑定关联的 NetMsmqSecurity

public:
 property System::ServiceModel::NetMsmqSecurity ^ Security { System::ServiceModel::NetMsmqSecurity ^ get(); };
public:
 property System::ServiceModel::NetMsmqSecurity ^ Security { System::ServiceModel::NetMsmqSecurity ^ get(); void set(System::ServiceModel::NetMsmqSecurity ^ value); };
public System.ServiceModel.NetMsmqSecurity Security { get; }
public System.ServiceModel.NetMsmqSecurity Security { get; set; }
member this.Security : System.ServiceModel.NetMsmqSecurity
member this.Security : System.ServiceModel.NetMsmqSecurity with get, set
Public ReadOnly Property Security As NetMsmqSecurity
Public Property Security As NetMsmqSecurity

属性值

与此绑定相关联的 NetMsmqSecurity

示例

下面的代码演示如何获取 NetMsmqSecurity 对象。

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

注解

NetMsmqSecurity 是消息队列 (MSMQ) 传输和 SOAP 安全的包装。 它指定是否启用传输或 SOAP 安全;如果启用,还指定所使用的身份验证模式和保护级别。

适用于