Share via


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 值,定義具名管道層級的訊息層級安全性。

屬性

備註

簽署訊息可以降低訊息在傳輸時遭到第三者竄改的風險。 加密可在傳輸時提供資料等級的隱私權。

適用於