ILicenseInfo Interface

Provides read only access to license information.

Definition

Namespace: SMath.Manager.Licensing
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.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 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.
Level

Level of the license which depends on PlanId.

Returns None if HasError is or after expiration of either the license or its evidence.

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.

  Note

The value is returned as specified in the license regardless of the licensing error.

StartDate UTC date and time of the license start. This value is 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 if the requested feature is present now and its options are equal to the specified value.

  Note

If HasError is or 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 or after expiration of either the license or its evidence all license features become unavailable.

See Also