## X509Certificate::Equals method


Compares two certificates.

```cpp
bool System::Security::Cryptography::X509Certificates::X509Certificate::Equals(SharedPtr<Object> obj) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| obj | SharedPtr\<Object\> | Certificate to compare with current object. |

### ReturnValue

true if the current certificate is equal to the specified certificate.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [X509Certificate](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.PDF for C++](../../../)
