語言

TcpTransportSecurityElement.ProtectionLevel 屬性

定義

取得或設定一個值,定義在指定管線層級的訊息層級安全性。

public:
 property System::Net::Security::ProtectionLevel ProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
[System.Configuration.ConfigurationProperty("protectionLevel", DefaultValue=System.Net.Security.ProtectionLevel.EncryptAndSign)]
public System.Net.Security.ProtectionLevel ProtectionLevel { get; set; }
[<System.Configuration.ConfigurationProperty("protectionLevel", DefaultValue=System.Net.Security.ProtectionLevel.EncryptAndSign)>]
member this.ProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ProtectionLevel As ProtectionLevel

屬性值

一個 ProtectionLevel 定義在命名管線層級訊息層級安全性的值。

屬性

備註

簽署訊息可降低第三方在傳輸過程中竄改訊息的風險。 加密在傳輸過程中提供資料層級的隱私。

適用於