> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/faq/how-to-create-an-activation-key-with-product-properties.md).

# How to create an Activation Key with Product Properties

The code below illustrates how to create an activation key with product properties.

{% code overflow="wrap" %}

```csharp
private void CreateActivationKey ()
{
 QlmProductProperties pps = new QlmProductProperties();

 // The arguments to AddProductProperty must be an exact match with the Product Properties defined in the 
 // Define Products tab in the QLM Management console. More specifically, the following arguments must match:
 // GUID, Category, Name, Type
 
 IQlmProductProperty pp = pps.AddProductProperty("{22a8d53a-2b51-4502-9f85-193b5f743b3b}", "category1", "property1", "string", "", "John");
 string ppsXml = pps.Serialize();

 string response;
 lv.QlmLicenseObject.CreateActivationKeyWithExpiryDateEx7(string.Empty, "john@soraco.co", null, 1, 1, 0, true, "5.0.00", string.Empty, string.Empty, string.Empty, DateTime.MinValue, -1, true, false, ELicenseModel.permanent, string.Empty, EOrderStatus.ENone,
 ppsXml, out response);

 ILicenseInfo licenseInfo = new LicenseInfo();
 string message = string.Empty;
 if (lv.QlmLicenseObject.ParseResults(response, ref licenseInfo, ref message))
 {
    // Success
 }
 else
 {
    // Failure
 }
}
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/faq/how-to-create-an-activation-key-with-product-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
