Bewerken

Delen via


WindowsStreamSecurityElement.ProtectionLevel Property

Definition

Gets or sets the message-level security used.

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

Property Value

A ProtectionLevel that specifies the message-level security used. The default value is EncryptAndSign .

Attributes

Remarks

This property specifies the message-level security used for signing and encryption. Signing messages mitigates the risk of a third party tampering with the message while it is being transferred. Encryption provides data-level privacy during transport.

Applies to