VerifyServerCertificateCallback Delegate
Collapse the table of content
Expand the table of content

VerifyServerCertificateCallback Delegate

The VerifyServerCertificateCallback delegate gets or sets the default callback function used to verify server certificates when establishing an SSL connection.

Namespace: System.DirectoryServices.Protocols
Assembly: System.DirectoryServices.Protocols (in system.directoryservices.protocols.dll)

public delegate bool VerifyServerCertificateCallback (
	LdapConnection connection,
	X509Certificate certificate
/** @delegate */
public delegate boolean VerifyServerCertificateCallback (
	LdapConnection connection, 
	X509Certificate certificate
Not applicable.



A LdapConnection object that specifies the connection.


A X509Certificate object that specifies the server certificate.

Return Value

true if the client approves the server certificate; otherwise false.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

© 2016 Microsoft