LicenseSpring Management .Net SDK 1.9.0
Easily add Software Licensing to your application
LicenseSpring.License Class Reference

License class, implements ILicense interface More...

Inheritance diagram for LicenseSpring.License:
LicenseSpring.ILicense

Public Member Functions

int DaysRemaining ()
 How many days remaining till license expires More...
 
bool Expired ()
 
LicenseFeature GetFeature (string featureCode)
 
bool IsMaintenancePeriodExpired ()
 Is maintenance period expired More...
 
 License ()
 License default constructor
 
int MaintenanceDaysRemaining ()
 How many days remaining till maintenance period expires in current time zone More...
 
DateTime MaintenancePeriodLocal ()
 
Returns
The DateTime when maintenance expires in UTC
More...
 
void ReplaceFeature (LicenseFeature feature)
 
DateTime ValidityPeriodLocal ()
 
Returns
The DateTime when license expires
More...
 
int DaysRemaining ()
 How many days remaining till license expires More...
 
bool IsMaintenancePeriodExpired ()
 Is maintenance period expired More...
 
int MaintenanceDaysRemaining ()
 How many days remaining till maintenance period expires in current time zone More...
 
DateTime MaintenancePeriodLocal ()
 
Returns
The DateTime when maintenance expires in UTC
More...
 
DateTime ValidityPeriodLocal ()
 
Returns
The DateTime when license expires
More...
 

Properties

uint? ActiveUpToDateDevices [get]
 
bool AllowOverages [get, set]
 
ConsumptionPeriod ConsumptionPeriod [get]
 
DateTime CreatedAt [get]
 The DateTime of license creation More...
 
List< CustomFieldCustomFields [get, set]
 Custom data fields available for the license More...
 
uint? DisabledUser [get]
 
bool EnableMaintenancePeriod [get]
 
uint FloatingInUseDevices [get]
 
uint? FloatingTimeout [get, set]
 
uint FloatingUsers [get]
 
ulong Id [get]
 License id More...
 
bool IsActive [get, set]
 
bool IsEnabled [get, set]
 
bool IsExpired [get, set]
 
bool IsFloating [get, set]
 Is this license floating More...
 
bool IsFloatingCloud [get]
 
bool IsTrial [get, set]
 Is this license trial More...
 
string LastActivationDevice [get]
 
DateTime LastCheck [get]
 
string LicenseKey [get, set]
 License key or null if not available (in case of user-based product) More...
 
LicenseType LicenseType [get]
 Type of license More...
 
LicenseUser LicenseUser [get, set]
 
List< LicenseUserLicenseUsers [get]
 
DateTime MaintenancePeriod [get]
 Maintenance period for the license More...
 
string MaintenancePeriodString [get, set]
 
uint MaxActivations [get, set]
 How many times license can be activated More...
 
int? MaxConsumptions [get, set]
 Maximum consumption of the license More...
 
uint MaxLicenseUsers [get]
 Maximum number of users of the license More...
 
int MaxOverages [get, set]
 Extra amount of consumption that allows to go over MaxConsumption. More...
 
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. More...
 
Customer Owner [get]
 Information about license owner, commonly it's a person or organization associated with the license More...
 
bool PreventVm [get]
 
Product Product [get, set]
 Information about a product this license belongs to More...
 
List< LicenseFeatureProductFeatures [get]
 Product features available for the license More...
 
bool ResetConsumption [get]
 
string Signature [get, set]
 
LicenseStatus Status [get]
 LicenseStatus object for this license More...
 
string SubscriptionId [get]
 
DateTime TimeActivated [get]
 The DateTime of license activation More...
 
DateTime TimeDisabled [get]
 The DateTime when the license was disabled More...
 
uint TimesActivated [get, set]
 How many times license already been activated More...
 
uint TotalActiveDevices [get]
 
int TotalConsumptions [get, set]
 Current total consumption of the license More...
 
uint TransferCount [get]
 
uint TrialDays [get]
 
string TypeString [get, set]
 
DateTime UpdatedAt [get]
 The DateTime of the last license update More...
 
DateTime ValidityPeriod [get]
 The DateTime until the license is valid More...
 
string ValidityPeriodString [get, set]
 
- Properties inherited from LicenseSpring.ILicense
uint? ActiveUpToDateDevices [get]
 
bool AllowOverages [get]
 
ConsumptionPeriod ConsumptionPeriod [get]
 
System.DateTime CreatedAt [get]
 The DateTime of license creation More...
 
List< CustomFieldCustomFields [get]
 Custom data fields available for the license More...
 
uint? DisabledUser [get]
 
bool EnableMaintenancePeriod [get]
 
uint FloatingInUseDevices [get]
 
uint? FloatingTimeout [get]
 
uint FloatingUsers [get]
 
ulong Id [get]
 License id More...
 
bool IsFloating [get]
 Is this license floating More...
 
bool IsTrial [get]
 Is this license trial More...
 
string LastActivationDevice [get]
 
System.DateTime LastCheck [get]
 
string LicenseKey [get]
 License key or null if not available (in case of user-based product) More...
 
LicenseType LicenseType [get]
 Type of license More...
 
LicenseUser LicenseUser [get]
 
List< LicenseUserLicenseUsers [get]
 
System.DateTime MaintenancePeriod [get]
 Maintenance period for the license More...
 
uint MaxActivations [get]
 How many times license can be activated More...
 
int? MaxConsumptions [get]
 Maximum consumption of the license More...
 
uint MaxLicenseUsers [get]
 Maximum number of users of the license More...
 
int MaxOverages [get]
 Extra amount of consumption that allows to go over MaxConsumption. More...
 
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. More...
 
Customer Owner [get]
 Information about license owner, commonly it's a person or organization associated with the license More...
 
bool PreventVm [get]
 
Product Product [get]
 Information about a product this license belongs to More...
 
List< LicenseFeatureProductFeatures [get]
 Product features available for the license More...
 
bool ResetConsumption [get]
 
LicenseStatus Status [get]
 LicenseStatus object for this license More...
 
string SubscriptionId [get]
 
System.DateTime TimeActivated [get]
 The DateTime of license activation More...
 
System.DateTime TimeDisabled [get]
 The DateTime when the license was disabled More...
 
uint TimesActivated [get]
 How many times license already been activated More...
 
uint TotalActiveDevices [get]
 
int TotalConsumptions [get]
 Current total consumption of the license More...
 
uint TransferCount [get]
 
uint TrialDays [get]
 
System.DateTime UpdatedAt [get]
 The DateTime of the last license update More...
 
System.DateTime ValidityPeriod [get]
 The DateTime until the license is valid More...
 

Detailed Description

License class, implements ILicense interface

Member Function Documentation

◆ DaysRemaining()

int LicenseSpring.License.DaysRemaining ( )

How many days remaining till license expires

Implements LicenseSpring.ILicense.

◆ IsMaintenancePeriodExpired()

bool LicenseSpring.License.IsMaintenancePeriodExpired ( )

Is maintenance period expired

Implements LicenseSpring.ILicense.

◆ MaintenanceDaysRemaining()

int LicenseSpring.License.MaintenanceDaysRemaining ( )

How many days remaining till maintenance period expires in current time zone

Implements LicenseSpring.ILicense.

◆ MaintenancePeriodLocal()

DateTime LicenseSpring.License.MaintenancePeriodLocal ( )

Returns
The DateTime when maintenance expires in UTC

Implements LicenseSpring.ILicense.

◆ ValidityPeriodLocal()

DateTime LicenseSpring.License.ValidityPeriodLocal ( )

Returns
The DateTime when license expires

Implements LicenseSpring.ILicense.

Property Documentation

◆ ActiveUpToDateDevices

uint? LicenseSpring.License.ActiveUpToDateDevices
get

◆ AllowOverages

bool LicenseSpring.License.AllowOverages
getset

◆ ConsumptionPeriod

ConsumptionPeriod LicenseSpring.License.ConsumptionPeriod
get

◆ CreatedAt

DateTime LicenseSpring.License.CreatedAt
get

The DateTime of license creation

Implements LicenseSpring.ILicense.

◆ CustomFields

List<CustomField> LicenseSpring.License.CustomFields
getset

Custom data fields available for the license

Implements LicenseSpring.ILicense.

◆ DisabledUser

uint? LicenseSpring.License.DisabledUser
get

◆ EnableMaintenancePeriod

bool LicenseSpring.License.EnableMaintenancePeriod
get

◆ FloatingInUseDevices

uint LicenseSpring.License.FloatingInUseDevices
get

◆ FloatingTimeout

uint? LicenseSpring.License.FloatingTimeout
getset

◆ FloatingUsers

uint LicenseSpring.License.FloatingUsers
get

◆ Id

ulong LicenseSpring.License.Id
get

◆ IsFloating

bool LicenseSpring.License.IsFloating
getset

Is this license floating

Implements LicenseSpring.ILicense.

◆ IsTrial

bool LicenseSpring.License.IsTrial
getset

Is this license trial

Implements LicenseSpring.ILicense.

◆ LastActivationDevice

string LicenseSpring.License.LastActivationDevice
get

◆ LastCheck

DateTime LicenseSpring.License.LastCheck
get

◆ LicenseKey

string LicenseSpring.License.LicenseKey
getset

License key or null if not available (in case of user-based product)

Implements LicenseSpring.ILicense.

◆ LicenseType

LicenseType LicenseSpring.License.LicenseType
get

Type of license

Implements LicenseSpring.ILicense.

◆ LicenseUser

LicenseUser LicenseSpring.License.LicenseUser
getset

◆ LicenseUsers

List<LicenseUser> LicenseSpring.License.LicenseUsers
get

◆ MaintenancePeriod

DateTime LicenseSpring.License.MaintenancePeriod
get

Maintenance period for the license

Implements LicenseSpring.ILicense.

◆ MaxActivations

uint LicenseSpring.License.MaxActivations
getset

How many times license can be activated

Implements LicenseSpring.ILicense.

◆ MaxConsumptions

int? LicenseSpring.License.MaxConsumptions
getset

Maximum consumption of the license

Implements LicenseSpring.ILicense.

◆ MaxLicenseUsers

uint LicenseSpring.License.MaxLicenseUsers
get

Maximum number of users of the license

Implements LicenseSpring.ILicense.

◆ MaxOverages

int LicenseSpring.License.MaxOverages
getset

Extra amount of consumption that allows to go over MaxConsumption.

Implements LicenseSpring.ILicense.

◆ Note

string LicenseSpring.License.Note
get

◆ Order

string LicenseSpring.License.Order
get

◆ OrderItem

string LicenseSpring.License.OrderItem
get

◆ OrderStoreId

string LicenseSpring.License.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.

Implements LicenseSpring.ILicense.

◆ Owner

Customer LicenseSpring.License.Owner
get

Information about license owner, commonly it's a person or organization associated with the license

Implements LicenseSpring.ILicense.

◆ PreventVm

bool LicenseSpring.License.PreventVm
get

◆ Product

Product LicenseSpring.License.Product
getset

Information about a product this license belongs to

Implements LicenseSpring.ILicense.

◆ ProductFeatures

List<LicenseFeature> LicenseSpring.License.ProductFeatures
get

Product features available for the license

Implements LicenseSpring.ILicense.

◆ ResetConsumption

bool LicenseSpring.License.ResetConsumption
get

◆ Status

LicenseStatus LicenseSpring.License.Status
get

LicenseStatus object for this license

Implements LicenseSpring.ILicense.

◆ SubscriptionId

string LicenseSpring.License.SubscriptionId
get

◆ TimeActivated

DateTime LicenseSpring.License.TimeActivated
get

The DateTime of license activation

Implements LicenseSpring.ILicense.

◆ TimeDisabled

DateTime LicenseSpring.License.TimeDisabled
get

The DateTime when the license was disabled

Implements LicenseSpring.ILicense.

◆ TimesActivated

uint LicenseSpring.License.TimesActivated
getset

How many times license already been activated

Implements LicenseSpring.ILicense.

◆ TotalActiveDevices

uint LicenseSpring.License.TotalActiveDevices
get

◆ TotalConsumptions

int LicenseSpring.License.TotalConsumptions
getset

Current total consumption of the license

Implements LicenseSpring.ILicense.

◆ TransferCount

uint LicenseSpring.License.TransferCount
get

◆ TrialDays

uint LicenseSpring.License.TrialDays
get

◆ UpdatedAt

DateTime LicenseSpring.License.UpdatedAt
get

The DateTime of the last license update

Implements LicenseSpring.ILicense.

◆ ValidityPeriod

DateTime LicenseSpring.License.ValidityPeriod
get

The DateTime until the license is valid

Implements LicenseSpring.ILicense.


The documentation for this class was generated from the following file: