NetMsmqBinding.Security 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 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 安全性,如果是,则使用哪种身份验证模式和保护级别。