Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpWebRequest.ServerCertificateValidationCallback Property

.NET Framework 4.6 and 4.5

Gets or sets a callback function to validate the server certificate.

Namespace:  System.Net
Assembly:  System (in System.dll)

public RemoteCertificateValidationCallback ServerCertificateValidationCallback { get; set; }

Property Value

Type: System.Net.Security.RemoteCertificateValidationCallback
A callback function to validate the server certificate.
A callback function to validate the server certificate.

The default is that no callback function is set and the ServerCertificateValidationCallback property is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft