VerifyServerCertificateCallback Delegate
.NET Framework 3.0
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)
Assembly: System.DirectoryServices.Protocols (in system.directoryservices.protocols.dll)
'Declaration Public Delegate Function VerifyServerCertificateCallback ( _ connection As LdapConnection, _ certificate As X509Certificate _ ) As Boolean 'Usage Dim instance As New VerifyServerCertificateCallback(AddressOf HandlerMethod)
/** @delegate */ public delegate boolean VerifyServerCertificateCallback ( LdapConnection connection, X509Certificate certificate )
Not applicable.
Parameters
- connection
A LdapConnection object that specifies the connection.
- certificate
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.Community Additions
ADD
Show: