Bagikan melalui


PackageDigitalSignatureManager.VerifyCertificate(X509Certificate) Metode

Definisi

Memverifikasi sertifikat X.509 tertentu.

public:
 static System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
[<System.Security.SecurityCritical>]
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Shared Function VerifyCertificate (certificate As X509Certificate) As X509ChainStatusFlags

Parameter

certificate
X509Certificate

Sertifikat X.509 untuk diverifikasi.

Mengembalikan

NoError (nilai 0) jika sertifikat berhasil diverifikasi; jika tidak, enumerasi bitwise dari bendera kesalahan.

Atribut

Berlaku untuk

Lihat juga