NetTcpSecurity.Transport 属性

定义

为用 NetTcpBinding 配置的终结点获取消息级安全性要求的类型。

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

属性值

TcpTransportSecurity

为终结点指示传输级安全性要求类型的 TcpTransportSecurity

示例

TcpTransportSecurity tsTcp = security.Transport;
Console.WriteLine("\tTcpTransportSecurity:");
Console.WriteLine("\t\tClient Credential Type: {0}", tsTcp.ClientCredentialType);
Console.WriteLine("\t\tProtectionLevel: {0}", tsTcp.ProtectionLevel);

注解

Transport SOAP 消息的完整性和机密性以及相互身份验证使用安全性。 如果在绑定上选择此安全模式,则使用安全传输配置信道堆栈,并且使用传输安全性(如 HTTPS 或 SSL)保护 SOAP 消息安全通过 TCP 传递。

适用于