Export (0) Print
Expand All

ServicePointManagerElement.EncryptionPolicy Property

Gets or sets the EncryptionPolicy to use.

Namespace:  System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("encryptionPolicy", DefaultValue = EncryptionPolicy.RequireEncryption)]
public EncryptionPolicy EncryptionPolicy { get; set; }

Property Value

Type: System.Net.Security.EncryptionPolicy
The encryption policy to use for a ServicePointManager instance.

The EncryptionPolicy property can require, allow, or prevent encryption. The EncryptionPolicy will be applied to an SSL/TLS session. The use of the Null cipher is required when the encryption policy is set to EncryptionPolicy.NoEncryption.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft