LicenseInfo Class
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Server
- Assembly
TXTextControl.TXSheetControl. Api. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. Server
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
Detached read-only signed entitlement metadata. Products cannot be mutated to grant authority.
Syntax
public class LicenseInfo
Members
Properties
| Property | Description |
|---|---|
| CustomerName | 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 | For a trial, the end of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses. |
| IssuedAt | For a trial, the start of its 30-day period as an ISO 8601 UTC string; null for Developer and OEM licenses. |
| IsValid | Whether the signed trial time window includes the snapshot time; perpetual licenses are always valid. |
| LicenseId | 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 | 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 | The covered components, SheetEditor and ServerSheetControl; every license from the Text Control Account covers both. |
| TrialSecondsRemaining | Remaining seconds rounded up and clamped to zero; null for perpetual licenses. |
| Type | 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.
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;
}