![]() |
LicenseSpring Management .Net SDK 1.15.0
Easily add Software Licensing to your application
|
License feature. More...
Public Types | |
| enum | Type { None , Activation , Consumption } |
| Feature type enumeration. More... | |
Public Member Functions | |
| bool | Equals (LicenseFeature other) |
| Returns whether LicenseFeatures are equal. | |
| override bool | Equals (object obj) |
| Override Object.Equals. | |
| override int | GetHashCode () |
| Override Object.GetHashCode. | |
| bool | IsExpired () |
Is license feature expired.
| |
| LicenseFeature () | |
| LicenseFeature default constructor. | |
| LicenseFeature (string code, Type type) | |
| LicenseFeature constructor. | |
| override string | ToString () |
| Override Object.ToString, helper method, do not rely on its output. | |
Static Public Member Functions | |
| static Type | FeatureTypeFromString (string value) |
| Helper function. Converts string value to feature type (LicenseFeature.Type) | |
Properties | |
| string | Code [get] |
| Feature code. | |
| DateTime | ExpiryDate [get] |
| It's final end date and time license feature is valid.The DateTime when license feature expires in local time | |
| DateTime | ExpiryDateUtc [get] |
| It's final end date and time license feature is valid.The DateTime when license feature expires in UTC | |
| Type | FeatureType [get] |
| Feature type. | |
| int | MaxConsumption [get] |
| Maximum consumption of the feature.Meaningful only for consumption feature type. | |
| string | Metadata [get, set] |
| Feature metadata. | |
| string | Name [get] |
| Feature name. | |
| int | TotalConsumption [get] |
| Total consumption of the feature, it includes LocalConsumption.Meaningful only for consumption feature type. | |
Properties inherited from LicenseSpring.ILicenseFeature | |
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 |
Feature code.
Implements LicenseSpring.ILicenseFeature.
|
get |
It's final end date and time license feature is valid.The DateTime when license feature expires in local time
Implements LicenseSpring.ILicenseFeature.
|
get |
It's final end date and time license feature is valid.The DateTime when license feature expires in UTC
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature type.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum consumption of the feature.Meaningful only for consumption feature type.
Implements LicenseSpring.ILicenseFeature.
|
getset |
Feature metadata.
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature name.
Implements LicenseSpring.ILicenseFeature.
|
get |
Total consumption of the feature, it includes LocalConsumption.Meaningful only for consumption feature type.
Implements LicenseSpring.ILicenseFeature.