Aspose.Email.Examples.CSharp.Email.Exchange.DownloadMessagesFromExchangeServerFoldersRecursively.RemoteCertificateValidationHandler C# (CSharp) Метод

RemoteCertificateValidationHandler() приватный статический Метод

private static RemoteCertificateValidationHandler ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
sslPolicyErrors SslPolicyErrors
Результат bool
        private static bool RemoteCertificateValidationHandler(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
        {
            return true; // Ignore the checks and go ahead
        }
        // ExEnd:DownloadMessagesFromExchangeServerFoldersRecursively