SslServerAuthenticationOptions.ServerCertificateSelectionCallback 属性

定义

获取或设置负责服务器证书选择的 ServerCertificateSelectionCallback 委托。

public:
 property System::Net::Security::ServerCertificateSelectionCallback ^ ServerCertificateSelectionCallback { System::Net::Security::ServerCertificateSelectionCallback ^ get(); void set(System::Net::Security::ServerCertificateSelectionCallback ^ value); };
public System.Net.Security.ServerCertificateSelectionCallback? ServerCertificateSelectionCallback { get; set; }
public System.Net.Security.ServerCertificateSelectionCallback ServerCertificateSelectionCallback { get; set; }
member this.ServerCertificateSelectionCallback : System.Net.Security.ServerCertificateSelectionCallback with get, set
Public Property ServerCertificateSelectionCallback As ServerCertificateSelectionCallback

属性值

注解

在建立服务器连接期间,服务器首先使用 ServerCertificateSelectionCallback 回调。 如果未提供委托,则服务器使用LocalCertificateSelectionCallback提供作为.NET Framework兼容性 (的参数 SslStream.SslStream) 。 如果这些回调均未提供/未提供,则服务器将回退到 ServerCertificate

适用于