# Licenser Class

<span class="api-meta">static</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">Licenser Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines mechanism required to register the client portion only of the OPC UA Framework Advanced.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public static class Licenser
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Module Licenser
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **Licenser**

## Remarks

It is recommended to set the [LicenseKey](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#licensekey) in the main entry point of the application. If there is no entry point available set the [LicenseKey](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#licensekey) property before the first use of the assembly.

## Properties

| Name | Description |
|---|---|
| [LicenseInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#licenseinfo)<span class="api-meta">static</span> | Gets the license conditions used for OPC UA Client development. |
| [LicenseKey](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#licensekey)<span class="api-meta">static</span> | Gets or sets the license key used to license this product. |

## Methods

| Name | Description |
|---|---|
| [FailIfEvaluation](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#failifevaluation)<span class="api-meta">static · since v2.9</span> | Emits an error message upon evaluation license conditions. |
| [FailIfExpired](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#failifexpired)<span class="api-meta">static · since v2.9</span> | Emits an error message upon expired license conditions. |
| [FailIfSupportExpired](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#failifsupportexpired)<span class="api-meta">static · since v2.9</span> | Emits an error message upon expired support license conditions. |
| [FailIfUnlicensed](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#failifunlicensed)<span class="api-meta">static · since v2.9</span> | Emits an error message upon non-productive license conditions. |
| [ThrowIfEvaluation](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#throwifevaluation)<span class="api-meta">static · since v2.9</span> | Throws an exception in case of an evaluation license. |
| [ThrowIfExpired](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#throwifexpired)<span class="api-meta">static · since v2.9</span> | Throws an exception in case of an expired license. |
| [ThrowIfSupportExpired](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#throwifsupportexpired)<span class="api-meta">static · since v2.9</span> | Throws an exception in case of a supported expired license. |
| [ThrowIfUnlicensed](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.licenser/members#throwifunlicensed)<span class="api-meta">static · since v2.9</span> | Throws an exception in case of a non-productive license. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
