TlsConnectionFeature.GetClientCertificateAsync(CancellationToken) 方法

定义

异步检索客户端证书(如果有)。

public:
 virtual System::Threading::Tasks::Task<System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ GetClientCertificateAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2?> GetClientCertificateAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
override this.GetClientCertificateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Cryptography.X509Certificates.X509Certificate2>
Public Function GetClientCertificateAsync (cancellationToken As CancellationToken) As Task(Of X509Certificate2)

参数

cancellationToken
CancellationToken

返回

实现

适用于