共用方式為


<windowsStreamSecurity>

指定自訂繫結的 Windows 資料流安全性設定。

結構描述階層

<system.serviceModel>
  <bindings>
    <customBinding>
      <binding>
        <windowsStreamSecurity>

語法

<windowsStreamSecurity protectionLevel="None/Sign/EncryptAndSign"/>

屬性和元素

下列各節說明屬性、子項目和父項目。

屬性

屬性 描述

protectionLevel

定義訊息層級安全性。簽章訊息可降低訊息在傳輸期間遭第三方竄改的風險。加密會提供傳輸期間的資料層級隱私權。有效值包括以下的值:

  • None:沒有任何保護。

  • Sign:簽署訊息。

  • EncryptAndSign:簽署和加密訊息。

預設為 EncryptAndSign。

此屬性的型別為 ProtectionLevel

項目子系

父項目

項目 描述

<binding>

定義自訂繫結的所有繫結功能。

備註

TCP 和具名管道這類使用資料流導向通訊協定的傳輸,支援資料流傳輸升級。具體來說,WCF 會提供安全性升級。此傳輸安全性的組態是由此組態項目和 <sslStreamSecurity> 所封裝,而此組態可進行設定並新增至自訂繫結。

另請參閱

參考

<customBinding>
CustomBinding
WindowsStreamSecurityElement
WindowsStreamSecurityBindingElement

其他資源

Windows Communication Foundation Bindings
Extending Bindings
Custom Bindings