System.Security.Cryptography.X509Certificates.X509Certificate.Equals Method

Compares two System.Security.Cryptography.X509Certificates.X509Certificate objects for equality.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public override bool Equals (object obj)

Parameters

obj
An System.Security.Cryptography.X509Certificates.X509Certificate object to compare to the current object.

Returns

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

Remarks

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

Requirements

Namespace: System.Security.Cryptography.X509Certificates
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0