共用方式為


XpsDigitalSignature.VerifyCertificate 方法

定義

驗證 X.509 憑證。

多載

VerifyCertificate()

驗證內嵌在封裝中的 X.509 憑證。

VerifyCertificate(X509Certificate)

驗證指定的 X.509 憑證。

VerifyCertificate()

驗證內嵌在封裝中的 X.509 憑證。

public:
 System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate();
[System.Security.SecurityCritical]
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
[<System.Security.SecurityCritical>]
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Function VerifyCertificate () As X509ChainStatusFlags

傳回

X509ChainStatusFlags

指定驗證嘗試結果之列舉值的位元組合。

屬性

備註

您的應用程式必須決定驗證憑證的重要旗標。

某些憑證驗證可能需要網際網路連線。

當呼叫 embedCertificate 參數設定 true 為 時,會內嵌 SignDigitally 簽署者的 X.509 憑證。

另請參閱

適用於

VerifyCertificate(X509Certificate)

驗證指定的 X.509 憑證。

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

參數

certificate
X509Certificate

真確性的憑證。

傳回

X509ChainStatusFlags

指定驗證嘗試結果之列舉值的位元組合。

屬性

備註

您的應用程式必須決定驗證憑證的重要旗標。

某些憑證驗證可能需要網際網路連線。

另請參閱

適用於