---
url: /statelake/scripting-reference/classes/license-class/license.licensename.md
---

# License.LicenseName

Returns the name of the entity this license is registered to.

This is the registered user name of the account on **Statelake** web site.

**Declaration**: property LicenseName: string

An example -

```pascal
procedure OnMapEvent(var Value:Variant);
begin
 //The registered owner of the license
  Value := License.LicenseName;
end;
```

The following identifies the **LicenseName** in a custom script.

```pascal
procedure ScriptEvent(var Value:Variant);
var
  WhoOwns : string;
begin
 //The registered owner of the license
  WhoOwns := License.LicenseName;
  LogInfo('The registered owner of the license is '+WhoOwns);
  LogInfo('');
end;
```
