ServicePointManagerElement.EncryptionPolicy Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 4.0
Return to top