ServerCertificateSelectionCallback 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
選取伺服器安全套接字層 (SSL) 憑證。
public delegate System::Security::Cryptography::X509Certificates::X509Certificate ^ ServerCertificateSelectionCallback(System::Object ^ sender, System::String ^ hostName);
C#
public delegate System.Security.Cryptography.X509Certificates.X509Certificate ServerCertificateSelectionCallback(object sender, string? hostName);
C#
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
- hostName
- String
用戶端所要求的主機名稱。 如果用戶端不使用 host_name TLS 延伸模組,則 hostName
為空字串。
X509Certificate,用於建立 SSL 連線。
伺服器會使用此委派來選取伺服器連接證書。
類別會 SslStream 使用此委派。 類別 SslStream 可用來協助保護客戶端與伺服器之間交換的資訊。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |