共用方式為


ConnectionInfo.GetClientCertificateAsync(CancellationToken) 方法

定義

擷取用戶端憑證。

public abstract System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2?> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public MustOverride Function GetClientCertificateAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of X509Certificate2)

參數

cancellationToken
CancellationToken

傳回

以非同步方式傳 X509Certificate2 回 。 可以是 null。

適用於