---
title: "System::Security::Cryptography::RSACryptoServiceProvider::get_PublicOnly method"
url: "https://reference.aspose.com/tex/cpp/system.security.cryptography/rsacryptoserviceprovider/get_publiconly/"
product: "Aspose.TeX for C++"
description: "System::Security::Cryptography::RSACryptoServiceProvider::get_PublicOnly method. Checks if public key only is present in CSP object in C++."
---

## RSACryptoServiceProvider::get_PublicOnly method


Checks if public key only is present in CSP object.

```cpp
bool System::Security::Cryptography::RSACryptoServiceProvider::get_PublicOnly() const
```


### ReturnValue

True if public key is present and private one is not, false otherwise.

## See Also

* Class [RSACryptoServiceProvider](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.TeX for C++](../../../)
