# LicenseInfo Class

> LicenseInfo class in the TX Sheet Control .NET API: Detached read-only signed entitlement metadata. Products cannot be mutated to grant authority.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > LicenseInfo Class
- **1212 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/llms-full.txt

---

Detached read-only signed entitlement metadata. Products cannot be mutated to grant authority.

### Syntax

```csharp
public class LicenseInfo
```

### Members

#### Properties

| Property | Description |
|---|---|
| [CustomerName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/customername-property/llms-full.txt) | The company the license is issued to: the organization of the Text Control account's billing address, or the account's ID when it has none. |
| [ExpiresAt](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/expiresat-property/llms-full.txt) | For a trial, the end of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses. |
| [IssuedAt](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/issuedat-property/llms-full.txt) | For a trial, the start of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses. |
| [IsValid](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/isvalid-property/llms-full.txt) | Whether the signed trial time window includes the snapshot time; perpetual licenses are always valid. |
| [LicenseId](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/licenseid-property/llms-full.txt) | The license ID, TRIAL-V2- or LIC-V2- followed by a UUID; every license file of the same serial number has the same ID. |
| [MajorVersion](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/majorversion-property/llms-full.txt) | The licensed major version, read from the product code of the license: SH-0200-XA-S is version 2.0, which covers every 2.x release. |
| [Products](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/products-property/llms-full.txt) | The covered components, SheetEditor and ServerSheetControl; every license from the Text Control Account covers both. |
| [TrialSecondsRemaining](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/trialsecondsremaining-property/llms-full.txt) | Remaining seconds rounded up and clamped to zero; null for perpetual licenses. |
| [Type](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/type-property/llms-full.txt) | The license type: trial, developer or oem. The declared eval is never issued. |

### Examples

Obtain LicenseInfo from a real document operation. Return the detached result to the calling report, API response or application.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<LicenseInfo> ReadReportLicenseInfoAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var result = control.LicenseInfo;
    return result;
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [LicenseInfo.CustomerName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/customername-property/llms-full.txt): LicenseInfo.CustomerName property in the TX Sheet Control .NET API: The company the license is issued to, from the billing address of the Text Control account.
- [LicenseInfo.ExpiresAt Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/expiresat-property/llms-full.txt): LicenseInfo.ExpiresAt property in the .NET API: For a trial, the end of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses.
- [LicenseInfo.IssuedAt Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/issuedat-property/llms-full.txt): LicenseInfo.IssuedAt property in the .NET API: For a trial, the start of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses.
- [LicenseInfo.IsValid Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/isvalid-property/llms-full.txt): LicenseInfo.IsValid property in the TX Sheet Control .NET API: Whether the signed trial time window includes the snapshot time.
- [LicenseInfo.LicenseId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/licenseid-property/llms-full.txt): LicenseInfo.LicenseId property in the TX Sheet Control .NET API: The license ID, TRIAL-V2- or LIC-V2- with a UUID, the same for every file of a serial number.
- [LicenseInfo.MajorVersion Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/majorversion-property/llms-full.txt): LicenseInfo.MajorVersion property in the TX Sheet Control .NET API: The licensed major version from the product code; SH-0200 covers every 2.x release.
- [LicenseInfo.Products Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/products-property/llms-full.txt): LicenseInfo.Products property in the TX Sheet Control .NET API: The covered components, SheetEditor and ServerSheetControl.
- [LicenseInfo.TrialSecondsRemaining Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/trialsecondsremaining-property/llms-full.txt): LicenseInfo.TrialSecondsRemaining property in the TX Sheet Control .NET API: Remaining seconds rounded up and clamped to zero; null for perpetual licenses.
- [LicenseInfo.Type Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/type-property/llms-full.txt): LicenseInfo.Type property in the TX Sheet Control .NET API: The license type: trial, developer or oem. The declared eval is never issued.

---

## Nearby

- **Previous:** [LicenseException.Code Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseexception/code-property/llms-full.txt)
- **Next:** [LicenseInfo.CustomerName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/licenseinfo/customername-property/llms-full.txt)
