共用方式為


X509SubjectKeyIdentifierClause.Matches(X509Certificate2) 方法

定義

傳回值,這個值會指出這個執行個體的金鑰識別碼是否相等於指定之 X.509 憑證的金鑰識別碼。

public:
 bool Matches(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public bool Matches (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
override this.Matches : System.Security.Cryptography.X509Certificates.X509Certificate2 -> bool
Public Function Matches (certificate As X509Certificate2) As Boolean

參數

certificate
X509Certificate2

X509Certificate2,其中包含要比較的 X.509 憑證。

傳回

如果 true 與目前執行個體具有相同的主體金鑰識別碼,則為 certificate,否則為 false

例外狀況

certificatenull

備註

Matches 方法會比較兩個 X.509 憑證的 X509SubjectKeyIdentifierExtension 延伸。

適用於