Sdílet prostřednictvím


X509SubjectKeyIdentifierClause.Matches(X509Certificate2) Metoda

Definice

Vrátí hodnotu, která označuje, zda je identifikátor klíče pro tuto instanci ekvivalentní identifikátoru klíče zadaného certifikátu 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

Parametry

certificate
X509Certificate2

Obsahuje X509Certificate2 certifikát X.509, který chcete porovnat.

Návraty

true pokud certificate má stejný identifikátor klíče subjektu jako aktuální instance, falsev opačném případě .

Výjimky

certificate je null.

Poznámky

Metoda Matches porovnává rozšíření pro dva certifikáty X509SubjectKeyIdentifierExtension X.509.

Platí pro