Class LicenseInfo
- Namespace
- BpNexT.NET
- Assembly
- BpNexT.NET.Core.dll
Read-only view of the loaded, signature-verified license.
public sealed class LicenseInfo
- Inheritance
-
objectLicenseInfo
Properties
CompanyId
The licensed company.
public Guid? CompanyId { get; }
Property Value
- Guid?
CompanyName
The licensed company's name.
public string? CompanyName { get; }
Property Value
Entitlements
Granted rights, see LicenseEntitlements.
public IReadOnlyList<string> Entitlements { get; }
Property Value
ExpiresAt
When the license expires; null for no expiry.
public DateTimeOffset? ExpiresAt { get; }
Property Value
Features
Module-bound add-ons, see LicenseFeatures.
public IReadOnlyList<string> Features { get; }
Property Value
IssuedAt
When the license was issued.
public DateTimeOffset IssuedAt { get; }
Property Value
LicenseId
The license id.
public Guid LicenseId { get; }
Property Value
ProductName
The product a product license is bound to.
public string? ProductName { get; }
Property Value
RuntimeEdition
Runtime edition for runtime licenses, see LicenseRuntimeEditions.
public string? RuntimeEdition { get; }
Property Value
Methods
GetLicenseInformation()
Human-readable summary for logs and console output.
public string GetLicenseInformation()
Returns
HasEntitlement(string)
Whether the license grants the entitlement.
public bool HasEntitlement(string entitlement)
Parameters
entitlementstring
Returns
HasFeature(string)
Whether the license includes the feature.
public bool HasFeature(string feature)
Parameters
featurestring