ServicePointManager.EncryptionPolicy Property

Definition

Gets the EncryptionPolicy for this ServicePointManager instance.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Net.Security.EncryptionPolicy EncryptionPolicy { get; }
C#
public static System.Net.Security.EncryptionPolicy EncryptionPolicy { get; }

Property Value

The encryption policy to use for this ServicePointManager instance.

Attributes

Remarks

If a value is not specified in the configuration file, the EncryptionPolicy property defaults to EncryptionPolicy.RequireEncryption. This is applied to an SSL/TLS session on this ServicePointManager instance.

The use of the Null cipher is required when the encryption policy is set to EncryptionPolicy.NoEncryption.

Anteckning

This property is only implemented on .NET Framework.

Applies to

Produkt Versioner
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also