X509Certificate2.Equals Method (X509Certificate2)

Compares two X509Certificate objects for equality.

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in system.security.dll)

Syntax

public virtual bool Equals (
         X509Certificate2 other
)

Parameters

  • other
    An X509Certificate object to compare to the current object.

Return Value

true if the current X509Certificate object is equal to the object specified by the other parameter; otherwise, false.

Remarks

Two X509Certificate objects are considered equal if they have the same issuer and serial number.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2 Class
X509Certificate2 Members
System.Security.Cryptography.X509Certificates Namespace