Table of Contents

Class LicenseInfo

Namespace
BpNexT.NET
Assembly
BpNexT.NET.Core.dll

Read-only view of the loaded, signature-verified license.

public sealed class LicenseInfo
Inheritance
object
LicenseInfo

Properties

CompanyId

The licensed company.

public Guid? CompanyId { get; }

Property Value

Guid?

CompanyName

The licensed company's name.

public string? CompanyName { get; }

Property Value

string

Entitlements

Granted rights, see LicenseEntitlements.

public IReadOnlyList<string> Entitlements { get; }

Property Value

IReadOnlyList<string>

ExpiresAt

When the license expires; null for no expiry.

public DateTimeOffset? ExpiresAt { get; }

Property Value

DateTimeOffset?

Features

Module-bound add-ons, see LicenseFeatures.

public IReadOnlyList<string> Features { get; }

Property Value

IReadOnlyList<string>

IssuedAt

When the license was issued.

public DateTimeOffset IssuedAt { get; }

Property Value

DateTimeOffset

LicenseId

The license id.

public Guid LicenseId { get; }

Property Value

Guid

ProductName

The product a product license is bound to.

public string? ProductName { get; }

Property Value

string

RuntimeEdition

Runtime edition for runtime licenses, see LicenseRuntimeEditions.

public string? RuntimeEdition { get; }

Property Value

string

Methods

GetLicenseInformation()

Human-readable summary for logs and console output.

public string GetLicenseInformation()

Returns

string

HasEntitlement(string)

Whether the license grants the entitlement.

public bool HasEntitlement(string entitlement)

Parameters

entitlement string

Returns

bool

HasFeature(string)

Whether the license includes the feature.

public bool HasFeature(string feature)

Parameters

feature string

Returns

bool