NetTcpBinding.Security 属性

定义

获取一个对象,该对象指定与采用此绑定配置的服务一起使用的安全类型。

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

属性值

包含与此绑定一起使用的安全类型的 NetTcpSecurityNetTCPBinding 的默认安全模式是 Transport

示例

此示例演示如何获取 Security 值。

NetTcpSecurity security = binding.Security;

注解

NetTcpSecurity 提供可用于 NetTcpBinding 的安全类型和设置。

适用于