ILicenseInfo Interface

Provides read only access to license information.

Definition

Namespace: SMath.Manager.Licensing
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
public interface ILicenseInfo

Properties

DisplayName Display name of the licensed user.
EndDate UTC date and time of the license expiration. This value is null for a lifetime license or if no suitable license is found.
HasError Determines whether an error has occured during retrieval of the license information.
IsLifetime Determines whether the license is a lifetime license.
Login Login of the licensed user.
OrgId ID of the organization for a commercial license or Empty for a personal license.
PlanId ID of the licensing plan or Basic if there is no suitable license.
StartDate UTC date and time of the license start. This value is null for old versions of SMath Licensing Server or if no suitable license is found.

Methods

FormatEndDate Formats the end date of the license.
HasFeature

Returns true if the requested feature is present now and its options are equal to the specified value.

  Note

If HasError is true, after expiration of either the license or its evidence all license features become unavailable.

TryGetFeature

Checks the current status and attempts to retrieve the options of the specified feature.

  Note

If HasError is true, after expiration of either the license or its evidence all license features become unavailable.

See Also