HttpWebRequest.ServerCertificateValidationCallback Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 4.5
Return to top
Show: