CheckValidationResult Method
Collapse the table of content
Expand the table of content

ICertificatePolicy.CheckValidationResult Method

Validates a server certificate.

[Visual Basic]
Function CheckValidationResult( _
   ByVal srvPoint As ServicePoint, _
   ByVal certificate As X509Certificate, _
   ByVal request As WebRequest, _
   ByVal certificateProblem As Integer _
) As Boolean
bool CheckValidationResult(
   ServicePoint srvPoint,
 X509Certificate certificate,
 WebRequest request,
 int certificateProblem
bool CheckValidationResult(
   ServicePoint* srvPoint,
 X509Certificate* certificate,
 WebRequest* request,
 int certificateProblem
function CheckValidationResult(
   srvPoint : ServicePoint,
 certificate : X509Certificate,
 request : WebRequest,
 certificateProblem : int
) : Boolean;


The ServicePoint that will use the certificate.
The certificate to validate.
The request that received the certificate.
The problem 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ICertificatePolicy Interface | ICertificatePolicy Members | System.Net Namespace

© 2015 Microsoft