## PublicKey::get_Key method


Gets an [RSACryptoServiceProvider](../../../system.security.cryptography/rsacryptoserviceprovider/) or [DSACryptoServiceProvider](../../../system.security.cryptography/dsacryptoserviceprovider/).

```cpp
SharedPtr<AsymmetricAlgorithm> System::Security::Cryptography::X509Certificates::PublicKey::get_Key() const
```


### ReturnValue

[AsymmetricAlgorithm](../../../system.security.cryptography/asymmetricalgorithm/) object representing the public key.

## See Also

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