ICertificatePolicy.CheckValidationResult Method

Validates a server certificate.

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

Function CheckValidationResult ( _
	srvPoint As ServicePoint, _
	certificate As X509Certificate, _
	request As WebRequest, _
	certificateProblem As Integer _
) As Boolean
Dim instance As ICertificatePolicy
Dim srvPoint As ServicePoint
Dim certificate As X509Certificate
Dim request As WebRequest
Dim certificateProblem As Integer
Dim returnValue As Boolean

returnValue = instance.CheckValidationResult(srvPoint, certificate, request, certificateProblem)
boolean CheckValidationResult (
	ServicePoint srvPoint, 
	X509Certificate certificate, 
	WebRequest request, 
	int certificateProblem
function CheckValidationResult (
	srvPoint : ServicePoint, 
	certificate : X509Certificate, 
	request : WebRequest, 
	certificateProblem : int
) : boolean
Not applicable.



The ServicePoint that will use the certificate.


The certificate to validate.


The request that received the certificate.


The problem that was encountered when using the certificate.

Return Value

true if the certificate should be honored; otherwise, false.

The CheckValidationResult method implements the application certificate validation policy. The method can examine the srvPoint, certificate, request, and certificateProblem parameters to determine whether the certificate should be honored.

The certificateProblem parameter is a Security Support Provider Interface (SSPI) status code. For more information, see the SSPI documentation on MSDN.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0