1
ServicePointManager.ServerCertificateValidationCallback
是RemoteCertificateValidationCallback
類型的財產。爲RemoteCertificateValidationCallback
構造函數這樣的委託作爲RemoteCertificateValidationCallback中的發件人是什麼?
public bool SomeCertificateErrorHandler(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
return false; // Don't accept any certificates!
}
當這個委託調用,有什麼具體類型是sender
?如果答案不明顯,在這個代表中sender
有什麼用?
(只所以沒有混亂,我是在討論方法我很感興趣的參數的內容在開玩笑。)