TlsConnectionFeature.GetClientCertificateAsync(CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Récupère de manière asynchrone le certificat client, le cas échéant.
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)
Paramètres
- cancellationToken
- CancellationToken