Bagikan melalui


ECDsaCertificateExtensions.GetECDsaPublicKey(X509Certificate2) Metode

Definisi

ECDsa Mendapatkan kunci umum dari X509Certificate2 sertifikat.

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

Parameter

certificate
X509Certificate2

Sertifikat.

Mengembalikan

Kunci umum, atau null jika sertifikat tidak memiliki kunci umum ECDsa.

Pengecualian

certificateadalah null.

Handel tidak valid.

Berlaku untuk