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 です。

属性

注釈

このプロパティは、署名と暗号化に使用されるメッセージ レベルのセキュリティを指定します。 メッセージに署名すると、転送中にサード パーティがメッセージを改ざんするリスクが軽減されます。 暗号化により、転送中のデータ レベルのプライバシーが提供されます。

適用対象