指定使用 <netPeerTcpBinding> 時傳輸層級安全性的設定。
<組態>
<system.service模型>
<裝訂>
<netPeerTcpBinding>
<裝訂>
<安全性>
<交通>
語法
<netPeerTcpBinding>
<binding>
<security>
<transport credentialType="Certificate/Password" />
</security>
</binding>
</netPeerTcpBinding>
屬性和項目
下列各節說明屬性、子元素和父元素
Attributes
| Attribute | Description |
|---|---|
| 憑證類型 | 選擇性。 指定用於驗證與對等傳輸傳送訊息的憑證類型。 此屬性的類型 PeerTransportCredentialType為 。 |
credentialType 屬性
| 價值觀 | Description |
|---|---|
| Certificate | 對等通道傳輸的認證需要X509憑證。 |
| 密碼 | 對等通道傳輸的認證需要正確的密碼。 |
子專案
None
父項目
| 元素 | Description |
|---|---|
| <安全> | 定義 netPeerTcpBinding< 的安全設定>。 |