<netPeerTcpBinding> 的 <transport>
指定使用 <netPeerTcpBinding> 時的傳輸層級安全性設定。
<configuration>
<system.serviceModel>
<bindings>
<netPeerTcpBinding>
<binding>
<security>
<transport>
Syntax
<netPeerTcpBinding>
<binding>
<security>
<transport credentialType="Certificate/Password" />
</security>
</binding>
</netPeerTcpBinding>
屬性和項目
下列各節說明屬性、子元素和父元素
屬性
屬性 | 描述 |
---|---|
credentialType | 選擇性。 指定認證的類型,用於驗證對等傳輸所傳送的訊息。 此屬性的型別為 PeerTransportCredentialType。 |
credentialType 屬性
值 | 描述 |
---|---|
憑證 | 對等通道傳輸的驗證作業需要 X509 憑證。 |
密碼 | 對等通道傳輸的驗證作業需要正確的密碼。 |
子元素
無
父項目
元素 | 描述 |
---|---|
<security> | 定義 <netPeerTcpBinding> 的安全性設定。 |