---
title: "System::Security::Cryptography::X509Certificates::PublicKey::get_Oid method"
url: "https://reference.aspose.com/font/cpp/system.security.cryptography.x509certificates/publickey/get_oid/"
product: "Aspose.Font for C++"
description: "System::Security::Cryptography::X509Certificates::PublicKey::get_Oid method. Gets identifier (OID) of the public key in C++."
---

## PublicKey::get_Oid method


Gets identifier (OID) of the public key.

```cpp
SharedPtr<Oid> System::Security::Cryptography::X509Certificates::PublicKey::get_Oid() const
```


### ReturnValue

[Object](../../../system/object/) identifier.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Oid](../../../system.security.cryptography/oid/)
* Class [PublicKey](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.Font for C++](../../../)
