ServicePointManagerElement.EncryptionPolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for