Export (0) Print
Expand All

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
[C#]
bool CheckValidationResult(
   ServicePoint srvPoint,
 X509Certificate certificate,
 WebRequest request,
 int certificateProblem
);
[C++]
bool CheckValidationResult(
   ServicePoint* srvPoint,
 X509Certificate* certificate,
 WebRequest* request,
 int certificateProblem
);
[JScript]
function CheckValidationResult(
   srvPoint : ServicePoint,
 certificate : X509Certificate,
 request : WebRequest,
 certificateProblem : int
) : Boolean;

Parameters

srvPoint
The ServicePoint that will use the certificate.
certificate
The certificate to validate.
request
The request that received the certificate.
certificateProblem
The problem encountered when using the certificate.

Return Value

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft