Breyta

Deila með


ServerCertificateSelectionCallback Delegate

Definition

Selects the server Secure Sockets Layer (SSL) certificate.

public delegate System::Security::Cryptography::X509Certificates::X509Certificate ^ ServerCertificateSelectionCallback(System::Object ^ sender, System::String ^ hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName);
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string hostName);
type ServerCertificateSelectionCallback = delegate of obj * string -> X509Certificate
Public Delegate Function ServerCertificateSelectionCallback(sender As Object, hostName As String) As X509Certificate 

Parameters

sender
Object

A SslStream object.

hostName
String

The host name requested by the client. If the client doesn't use the host_name TLS extension, the hostName is an empty string.

Return Value

An X509Certificate used for establishing an SSL connection.

Remarks

The server uses this delegate to select a server connection certificate.

This delegate is used by the SslStream class. The SslStream class is used to help secure information exchanged between a client and server.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to