ICertificatePolicy.CheckValidationResult Method
This page is specific to:.NET Framework Version:1.12.03.03.54.0
.NET Framework Class Library
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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View