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 扩展进行比较。

适用于