共用方式為


ITlsConnectionFeature.GetRemoteCertificateAsync(CancellationToken) 方法

定義

如果有的話,以非同步方式擷取遠端端點的憑證。

public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> GetRemoteCertificateAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetRemoteCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public Function GetRemoteCertificateAsync (cancellationToken As CancellationToken) As Task(Of X509Certificate2)

參數

cancellationToken
CancellationToken

傳回

適用於