# How to get the latest enabled features from the server

The code below illustrates how to retrieve the latest features from the server and check if a specific feature is enabled.

{% code overflow="wrap" %}

```csharp
// Feature IDs of each feature as per the Define Products tab in QLM
private const int FEATURE_STD = 1 << 0; 
private const int FEATURE_PRO = 1 << 1;
private const int FEATURE_ENT = 1 << 2;

private void GetLatestFeatures()
{
 // Assuming lv is an instance of the LicenseValidator class:

string dataSet;
string response;
QlmLicenseLib.ILicenseInfo licenseInfo;

licenseInfo = lv.QlmLicenseObject.GetLicenseInfo(String.Empty, lv.ActivationKey, false, out dataSet, out response);

if (licenseInfo != null)
{
 if (!String.IsNullOrEmpty(licenseInfo.Features))
 {
   int[] features = lv.QlmLicenseObject.ConvertFeaturesToArray(licenseInfo.Features);

  // Check if feature set 1, feature ID 1 is enabled
  if ((features[0] & FEATURE_STD) == FEATURE_STD)
  {
      // the feature is enabled
   }
  }
 }
}
```

{% endcode %}


---

# Agent Instructions: 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/how-to/how-to-get-the-latest-enabled-features-from-the-server.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.
