ClientServerCertificatesAutoValidation Property
Gets or sets the flags against which the server certificate should be automatically validated.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public CertificateValidationFlags AutoValidation { get; set; }

Property Value

Type: CertificateValidationFlags
A combination of one or more CertificateValidationFlags values. The default value is None.
Remarks

If this property value is not None and SSL handshake starts, MailBee will automatically validate the server certificate against all the flags specified.

If the server certificate fails to pass validation against any of the flags specified, MailBee closes the connection and throws MailBeeCertificateValidationException.

Note Note
This feature does not work in UWP apps. Use SocketCreating event instead (similar event also exists for Pop3 and Smtp classes).
Examples
The example is available in ClientServerCertificates topic.
See Also