![]() |
LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
|
License class, implements ILicense
interface.
More...
Public Member Functions | |
int | DaysRemaining () |
How many days remaining till license expires.Days counter will be changed in midnight by UTC. 0 means license expires today. | |
bool | Expired () |
LicenseFeature | GetFeature (string featureCode) |
bool | IsMaintenancePeriodExpired () |
Is maintenance period expired.
| |
License () | |
License default constructor. | |
int | MaintenanceDaysRemaining () |
How many days remaining till maintenance period expires in current time zone.Days counter will be changed in local midnight. Returns int.MaxValue in case maintenance period unlimited or not specified. | |
DateTime | MaintenancePeriodLocal () |
| |
void | ReplaceFeature (LicenseFeature feature) |
DateTime | ValidityPeriodLocal () |
| |
Properties | |
uint? | ActiveUpToDateDevices [get] |
bool | AllowOverages [get, set] |
ConsumptionPeriod | ConsumptionPeriod [get] |
DateTime | CreatedAt [get] |
The DateTime of license creation. | |
List< CustomField > | CustomFields [get, set] |
Custom data fields available for the license. | |
uint? | DisabledUser [get] |
bool | EnableMaintenancePeriod [get] |
uint | FloatingInUseDevices [get] |
uint? | FloatingTimeout [get, set] |
uint | FloatingUsers [get] |
ulong | Id [get] |
License id. | |
bool | IsActive [get, set] |
bool | IsEnabled [get, set] |
bool | IsExpired [get, set] |
bool | IsFloating [get, set] |
Is this license floating. | |
bool | IsFloatingCloud [get] |
bool | IsTrial [get, set] |
Is this license trial. | |
string | LastActivationDevice [get] |
DateTime | LastCheck [get] |
string | LicenseKey [get, set] |
License key or null if not available (in case of user-based product) | |
LicenseType | LicenseType [get] |
Type of license. | |
LicenseUser | LicenseUser [get, set] |
List< LicenseUser > | LicenseUsers [get] |
DateTime | MaintenancePeriod [get] |
Maintenance period for the license. | |
string | MaintenancePeriodString [get, set] |
uint | MaxActivations [get, set] |
How many times license can be activated. | |
int? | MaxConsumptions [get, set] |
Maximum consumption of the license. | |
uint | MaxLicenseUsers [get] |
Maximum number of users of the license. | |
int | MaxOverages [get, set] |
Extra amount of consumption that allows to go over MaxConsumption . | |
string | Note [get] |
string | Order [get] |
string | OrderItem [get] |
string | OrderStoreId [get] |
A client order id that can be manually set in platform or through the SDK. Not to be confused with order id that the server generates. | |
Customer | Owner [get] |
Information about license owner, commonly it's a person or organization associated with the license. | |
bool | PreventVm [get] |
Product | Product [get, set] |
Information about a product this license belongs to. | |
List< LicenseFeature > | ProductFeatures [get] |
Product features available for the license. | |
bool | ResetConsumption [get] |
string | Signature [get, set] |
LicenseStatus | Status [get] |
LicenseStatus object for this license. | |
string | SubscriptionId [get] |
DateTime | TimeActivated [get] |
The DateTime of license activation. | |
DateTime | TimeDisabled [get] |
The DateTime when the license was disabled. | |
uint | TimesActivated [get, set] |
How many times license already been activated. | |
uint | TotalActiveDevices [get] |
int | TotalConsumptions [get, set] |
Current total consumption of the license. | |
uint | TransferCount [get] |
uint | TrialDays [get] |
string | TypeString [get, set] |
DateTime | UpdatedAt [get] |
The DateTime of the last license update. | |
DateTime | ValidityPeriod [get] |
The DateTime until the license is valid. | |
string | ValidityPeriodString [get, set] |
![]() |
License class, implements ILicense
interface.
int LicenseSpring.License.DaysRemaining | ( | ) |
How many days remaining till license expires.Days counter will be changed in midnight by UTC. 0 means license expires today.
Implements LicenseSpring.ILicense.
bool LicenseSpring.License.IsMaintenancePeriodExpired | ( | ) |
Is maintenance period expired.
Implements LicenseSpring.ILicense.
int LicenseSpring.License.MaintenanceDaysRemaining | ( | ) |
How many days remaining till maintenance period expires in current time zone.Days counter will be changed in local midnight. Returns int.MaxValue in case maintenance period unlimited or not specified.
Implements LicenseSpring.ILicense.
DateTime LicenseSpring.License.MaintenancePeriodLocal | ( | ) |
Implements LicenseSpring.ILicense.
DateTime LicenseSpring.License.ValidityPeriodLocal | ( | ) |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
getset |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
The DateTime of license creation.
Implements LicenseSpring.ILicense.
|
getset |
Custom data fields available for the license.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
getset |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
License id.
Implements LicenseSpring.ILicense.
|
getset |
Is this license floating.
Implements LicenseSpring.ILicense.
|
getset |
Is this license trial.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
getset |
License key or null if not available (in case of user-based product)
Implements LicenseSpring.ILicense.
|
get |
Type of license.
Implements LicenseSpring.ILicense.
|
getset |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Maintenance period for the license.
Implements LicenseSpring.ILicense.
|
getset |
How many times license can be activated.
Implements LicenseSpring.ILicense.
|
getset |
Maximum consumption of the license.
Implements LicenseSpring.ILicense.
|
get |
Maximum number of users of the license.
Implements LicenseSpring.ILicense.
|
getset |
Extra amount of consumption that allows to go over MaxConsumption
.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
A client order id that can be manually set in platform or through the SDK. Not to be confused with order id that the server generates.
Implements LicenseSpring.ILicense.
|
get |
Information about license owner, commonly it's a person or organization associated with the license.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
getset |
Information about a product this license belongs to.
Implements LicenseSpring.ILicense.
|
get |
Product features available for the license.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
LicenseStatus object for this license.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
The DateTime of license activation.
Implements LicenseSpring.ILicense.
|
get |
The DateTime when the license was disabled.
Implements LicenseSpring.ILicense.
|
getset |
How many times license already been activated.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
getset |
Current total consumption of the license.
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
Implements LicenseSpring.ILicense.
|
get |
The DateTime of the last license update.
Implements LicenseSpring.ILicense.
|
get |
The DateTime until the license is valid.
Implements LicenseSpring.ILicense.