LocalCertificateSelectionCallback Delegate
.NET Framework (current version)
Selects the local Secure Sockets Layer (SSL) certificate used for authentication.
Assembly: System (in System.dll)
Public Delegate Function LocalCertificateSelectionCallback ( sender As Object, targetHost As String, localCertificates As X509CertificateCollection, remoteCertificate As X509Certificate, acceptableIssuers As String() ) As X509Certificate
Parameters
- sender
-
Type:
System.Object
An object that contains state information for this validation.
- targetHost
-
Type:
System.String
The host server specified by the client.
- localCertificates
-
Type:
System.Security.Cryptography.X509Certificates.X509CertificateCollection
An X509CertificateCollection containing local certificates.
- remoteCertificate
-
Type:
System.Security.Cryptography.X509Certificates.X509Certificate
The certificate used to authenticate the remote party.
- acceptableIssuers
-
Type:
System.String()
A String array of certificate issuers acceptable to the remote party.
Return Value
Type: System.Security.Cryptography.X509Certificates.X509CertificateAn X509Certificate used for establishing an SSL connection.
The following code example demonstrates a method implementation for this delegate.
The following code example demonstrates creating an instance of this delegate.
.NET Framework
Available since 2.0
Available since 2.0
Show: