WindowsStreamSecurityElement.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 ,指定使用的消息级安全性。 默认值为 EncryptAndSign .

属性

注解

此属性指定用于签名和加密的消息级安全性。 签名消息可缓解传输消息时第三方篡改消息的风险。 加密在传输过程中提供数据级隐私。

适用于