![]() |
LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
|
Public Types | |
enum | Type { None , Activation , Consumption } |
Feature type enumeration More... | |
Public Member Functions | |
bool | Equals (LicenseFeature other) |
Returns whether LicenseFeatures are equal More... | |
override bool | Equals (object obj) |
Override Object.Equals More... | |
override int | GetHashCode () |
Override Object.GetHashCode More... | |
bool | IsExpired () |
Is license feature expired More... | |
LicenseFeature () | |
LicenseFeature default constructor | |
LicenseFeature (string code, Type type) | |
LicenseFeature constructor More... | |
override string | ToString () |
Override Object.ToString, helper method, do not rely on its output. More... | |
bool | IsExpired () |
Is license feature expired More... | |
string | ToString () |
Override Object.ToString More... | |
Static Public Member Functions | |
static Type | FeatureTypeFromString (string value) |
Helper function. Converts string value to feature type (LicenseFeature.Type) More... | |
Properties | |
bool | AllowOverages [get] |
Indicates whether overage is allowed for Consumption feature. More... | |
bool | AllowUnlimitedConsumptions [get] |
Indicates whether unlimited consumptions is allowed for Consumption feature. More... | |
string | Code [get] |
Feature code More... | |
ConsumptionPeriod | ConsumptionPeriod [get] |
Period of time after which consumption is reset. More... | |
DateTime | ExpiryDate [get] |
It's final end date and time license feature is valid. More... | |
DateTime | ExpiryDateUtc [get] |
It's final end date and time license feature is valid. More... | |
Type | FeatureType [get] |
Feature type More... | |
int | LocalConsumption [get] |
Local consumption of the feature, this is the amount which has not been synced yet. More... | |
int | MaxConsumption [get] |
Maximum consumption of the feature. More... | |
int | MaxOverages [get] |
Maximum overage allowed for the license feature. More... | |
string | Metadata [get] |
Feature metadata More... | |
string | Name [get] |
Feature name More... | |
bool | ResetConsumption [get] |
Indicates whether consumption resets after a certain period of time. More... | |
int | TotalConsumption [get] |
Total consumption of the feature, it includes LocalConsumption. More... | |
![]() | |
bool | AllowOverages [get] |
Indicates whether overage is allowed for Consumption feature. More... | |
bool | AllowUnlimitedConsumptions [get] |
Indicates whether unlimited consumptions is allowed for Consumption feature. More... | |
string | Code [get] |
Feature code More... | |
ConsumptionPeriod | ConsumptionPeriod [get] |
Period of time after which consumption is reset. More... | |
System.DateTime | ExpiryDate [get] |
It's final end date and time license feature is valid. More... | |
System.DateTime | ExpiryDateUtc [get] |
It's final end date and time license feature is valid. More... | |
LicenseFeature.Type | FeatureType [get] |
Feature type More... | |
int | LocalConsumption [get] |
Local consumption of the feature, this is the amount which has not been synced yet. More... | |
int | MaxConsumption [get] |
Maximum consumption of the feature. More... | |
int | MaxOverages [get] |
Maximum overage allowed for the license feature. More... | |
string | Metadata [get] |
Feature metadata More... | |
string | Name [get] |
Feature name More... | |
bool | ResetConsumption [get] |
Indicates whether consumption resets after a certain period of time. More... | |
int | TotalConsumption [get] |
Total consumption of the feature, it includes LocalConsumption. More... | |
License feature
Particular license may have or not some of the product features.
LicenseSpring.LicenseFeature.LicenseFeature | ( | string | code, |
Type | type | ||
) |
LicenseFeature constructor
code | Feature code |
type | Feature type |
bool LicenseSpring.LicenseFeature.Equals | ( | LicenseFeature | other | ) |
Returns whether LicenseFeatures are equal
other | Object to compare |
override bool LicenseSpring.LicenseFeature.Equals | ( | object | obj | ) |
Override Object.Equals
obj | Object to compare |
|
static |
Helper function. Converts string value to feature type (LicenseFeature.Type)
value | String value of the feature type |
override int LicenseSpring.LicenseFeature.GetHashCode | ( | ) |
Override Object.GetHashCode
bool LicenseSpring.LicenseFeature.IsExpired | ( | ) |
Is license feature expired
Implements LicenseSpring.ILicenseFeature.
override string LicenseSpring.LicenseFeature.ToString | ( | ) |
Override Object.ToString, helper method, do not rely on its output.
Implements LicenseSpring.ILicenseFeature.
|
get |
Indicates whether overage is allowed for Consumption feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Indicates whether unlimited consumptions is allowed for Consumption feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature code
Implements LicenseSpring.ILicenseFeature.
|
get |
Period of time after which consumption is reset.
Implements LicenseSpring.ILicenseFeature.
|
get |
It's final end date and time license feature is valid.
Implements LicenseSpring.ILicenseFeature.
|
get |
It's final end date and time license feature is valid.
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature type
Implements LicenseSpring.ILicenseFeature.
|
get |
Local consumption of the feature, this is the amount which has not been synced yet.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum consumption of the feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum overage allowed for the license feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature metadata
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature name
Implements LicenseSpring.ILicenseFeature.
|
get |
Indicates whether consumption resets after a certain period of time.
Implements LicenseSpring.ILicenseFeature.
|
get |
Total consumption of the feature, it includes LocalConsumption.
Implements LicenseSpring.ILicenseFeature.