X509SubjectKeyIdentifierClause.Matches(X509Certificate2) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value that indicates whether the key identifier for this instance is equivalent to the key identifier of the specified X.509 certificate.
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
Parameters
- certificate
- X509Certificate2
An X509Certificate2 that contains the X.509 certificate to compare.
Returns
true
if certificate
has the same subject key identifier as the current instance; otherwise, false
.
Exceptions
certificate
is null
.
Remarks
The Matches method compares the X509SubjectKeyIdentifierExtension extension for the two X.509 certificates.