X509ThumbprintKeyIdentifierClause.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 证书。

返回

如果 certificate 与当前实例含有相同的指纹,则为 true;否则为 false

适用于