NetTcpSecurity.Transport 屬性

定義

取得以 NetTcpBinding 設定之端點的訊息層級安全性需求的型別。Gets the type of message-level security requirements for an endpoint configured with a 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,代表端點的傳輸層級安全性需求的型別。The TcpTransportSecurity that indicates the type of transport-level security requirements for an endpoint.

範例

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 訊息的完整性與機密性,以及進行相互驗證。Use Transport security for integrity and confidentiality of the SOAP message and for mutual authentication. 如果繫結上選取了這個安全性模式,通道堆疊會以安全性傳輸進行設定,且 SOAP 訊息會使用傳輸安全性 (如 TCP 上的 HTTPS 或 SSL) 保護。If this security mode is selected on a binding, the channel stack is configured using a secure transport and the SOAP messages are secured using transport security such as HTTPS or SSL over TCP.

適用於