Edit

Share via


ServicePointManagerElement.EncryptionPolicy Property

Definition

Gets or sets the EncryptionPolicy to use.

public:
 property System::Net::Security::EncryptionPolicy EncryptionPolicy { System::Net::Security::EncryptionPolicy get(); void set(System::Net::Security::EncryptionPolicy value); };
[System.Configuration.ConfigurationProperty("encryptionPolicy", DefaultValue=System.Net.Security.EncryptionPolicy.RequireEncryption)]
public System.Net.Security.EncryptionPolicy EncryptionPolicy { get; set; }
[<System.Configuration.ConfigurationProperty("encryptionPolicy", DefaultValue=System.Net.Security.EncryptionPolicy.RequireEncryption)>]
member this.EncryptionPolicy : System.Net.Security.EncryptionPolicy with get, set
Public Property EncryptionPolicy As EncryptionPolicy

Property Value

The encryption policy to use for a ServicePointManager instance.

Attributes

Remarks

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.

Applies to

See also