Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CheckValidationResult Method
Collapse the table of content
Expand the table of content

ICertificatePolicy.CheckValidationResult Method

Validates a server certificate.

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

bool CheckValidationResult (
	ServicePoint^ srvPoint, 
	X509Certificate^ certificate, 
	WebRequest^ request, 
	int certificateProblem
)
boolean CheckValidationResult (
	ServicePoint srvPoint, 
	X509Certificate certificate, 
	WebRequest request, 
	int certificateProblem
)
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 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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft