共用方式為


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 tsTcp = security.Transport;
Console.WriteLine("\tTcpTransportSecurity:");
Console.WriteLine("\t\tClient Credential Type: {0}", tsTcp.ClientCredentialType);
Console.WriteLine("\t\tProtectionLevel: {0}", tsTcp.ProtectionLevel);

備註

Transport 安全性用於 SOAP 訊息的完整性和機密性,以及用於相互驗證。 如果繫結上選取了這個安全性模式,通道堆疊會以安全性傳輸進行設定,且 SOAP 訊息會使用傳輸安全性 (如 TCP 上的 HTTPS 或 SSL) 保護。

適用於