Επεξεργασία

Κοινή χρήση μέσω


X509RawDataKeyIdentifierClause.Matches(X509Certificate2) Method

Definition

Returns a value that indicates whether the key identifier for this instance is equivalent to 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 raw data that matches the current instance; otherwise, false.

Exceptions

certificate is null.

Remarks

The Matches method calls the GetRawCertData method for the certificate and then compares that to the current instance.

Applies to