![]() |
LicenseSpring .Net SDK 8.2.1
Easily add Software Licensing to your application
|
LicenseStatus interface. More...
Public Member Functions | |
| bool | IsActive () |
| Method for checking license Active/Inactive state. | |
| bool | IsDeleted () |
| Obsolete, always returns false. | |
| bool | IsEnabled () |
| Method for checking license Enabled/Disabled state. | |
| bool | IsExpired () |
| Method that returns cached value is license expired or not. | |
| bool | IsOk () |
| Helper method for checking local license status. | |
| string | ToString () |
| License status string, override Object.ToString. | |
LicenseStatus interface.
| bool LicenseSpring.ILicenseStatus.IsActive | ( | ) |
Method for checking license Active/Inactive state.
License considered active if it was successfully activated, it can become inactive after deactivation or if it was reset.
Pay attention that license can be active and expired or disabled at the same time.
Implemented in LicenseSpring.LicenseStatus.
| bool LicenseSpring.ILicenseStatus.IsDeleted | ( | ) |
Obsolete, always returns false.
A license deleted on the LicenseSpring backend is reported as disabled. Use IsEnabled, and expect LicenseDisabledException from a license check.
Implemented in LicenseSpring.LicenseStatus.
| bool LicenseSpring.ILicenseStatus.IsEnabled | ( | ) |
Method for checking license Enabled/Disabled state.
License can become Disabled after online license check if it was disabled by administrator.
Implemented in LicenseSpring.LicenseStatus.
| bool LicenseSpring.ILicenseStatus.IsExpired | ( | ) |
Method that returns cached value is license expired or not.
ATTENTION: Do not rely on this method, because it does not perform any checks, it just return cached value from local license.
In order to check if license is expired use License.IsExpired or online/local license checks.
Implemented in LicenseSpring.LicenseStatus.
| bool LicenseSpring.ILicenseStatus.IsOk | ( | ) |
Helper method for checking local license status.
Implemented in LicenseSpring.LicenseStatus.
| string LicenseSpring.ILicenseStatus.ToString | ( | ) |
License status string, override Object.ToString.
Possible values are: Active, Disabled, Expired and Inactive.
Implemented in LicenseSpring.LicenseStatus.