---
title: "Aspose::Pub::MeteredBillingService::Setkey method"
url: "https://reference.aspose.com/pub/cpp/aspose.pub/meteredbillingservice/setkey/"
product: "Aspose.PUB for C++"
description: "Aspose::Pub::MeteredBillingService::Setkey method. Sets the subscription public and private key in C++."
---

## MeteredBillingService::Setkey method


Sets the subscription public and private key.

```cpp
bool Aspose::Pub::MeteredBillingService::Setkey(System::String subscriptionPublicKey, System::String subscriptionPrivateKey)
```


| Parameter | Type | Description |
| --- | --- | --- |
| subscriptionPublicKey | System::String | subscription public key |
| subscriptionPrivateKey | System::String | subscription private key |

### ReturnValue



## See Also

* Class [String](../../../system/string/)
* Class [MeteredBillingService](../)
* Namespace [Aspose::Pub](../../)
* Library [Aspose.PUB for C++](../../../)
