RSACertificateExtensions.GetRSAPublicKey(X509Certificate2) Méthode

Définition

Obtient la clé publique RSA du X509Certificate2.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::Cryptography::RSA ^ GetRSAPublicKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static System.Security.Cryptography.RSA? GetRSAPublicKey (this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public static System.Security.Cryptography.RSA GetRSAPublicKey (this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member GetRSAPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.RSA
<Extension()>
Public Function GetRSAPublicKey (certificate As X509Certificate2) As RSA

Paramètres

certificate
X509Certificate2

Certificat.

Retours

RSA

Clé publique, ou null si le certificat n’a pas de clé publique RSA.

Exceptions

certificate a la valeur null.

Windows signale une erreur. Pour plus d'informations, consultez la propriété Message.

S’applique à