共用方式為


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 提供的 作為 (自SslStream.SslStream變數,以便 .NET Framework 相容性) 。 如果未提供/未提供這些回呼,伺服器會回復為 ServerCertificate

適用於