![]() |
LicenseSpring .Net SDK 7.32.1
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 | |
bool | AllowNegativeConsumptions [get] |
Indicates whether negative consumption is allowed for Consumption feature.Meaningful only for Consumption license features. | |
bool | AllowOverages [get] |
Indicates whether overage is allowed for Consumption feature.Meaningful only for Consumption license features. | |
bool | AllowUnlimitedConsumptions [get] |
Indicates whether unlimited consumption is allowed for Consumption feature.Meaningful only for Consumption license features. | |
string | Code [get] |
Feature code. | |
ConsumptionPeriod | ConsumptionPeriod [get] |
Period of time after which consumption is reset.Meaningful only for Consumption license features. | |
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. | |
DateTime | FloatingEndDateTime [get] |
Point in time until which a floating feature is registered. Expressed in local time.Meaningful only for floating features. Returns DateTime.Now if a feature is not registered or is not floating. | |
DateTime | FloatingEndDateTimeUtc [get] |
Point in time until which a floating feature is registered. Expressed in UTC.Meaningful only for floating licenses. Returns DateTime.Now if a feature is not registered or is not floating. | |
uint | FloatingSlotsCount [get] |
Maximum number of simultaneous users allowed for this feature.Meaningful only for floating features. | |
uint | FloatingSlotsInUse [get] |
Current number of simultaneous users using this feature.Meaningful only for floating features. | |
uint | FloatingTimeout [get] |
Duration of floating feature registration in minutes.Meaningful only for floating features. | |
bool | IsFloating [get] |
Is this feature a floating feature. | |
bool | IsOfflineFloating [get] |
Is this feature an offline server floating feature. | |
int | LocalConsumption [get] |
Local consumption of the feature, this is the amount which has not been synced yet.Meaningful only for consumption feature type. | |
int | MaxConsumption [get] |
Maximum consumption of the feature.Meaningful only for consumption feature type. | |
int | MaxOverages [get] |
Maximum overage allowed for the license feature.Meaningful only for Consumption feature type, the value is 0 in case of unlimited overages | |
string | Metadata [get] |
Feature metadata. | |
string | Name [get] |
Feature name. | |
bool | ResetConsumption [get] |
Indicates whether consumption resets after a certain period of time.Meaningful only for Consumption license features. | |
int | TotalConsumption [get] |
Total consumption of the feature, it includes LocalConsumption.Meaningful only for consumption feature type. | |
![]() |
License feature.
Particular license may or may not have 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 negative consumption is allowed for Consumption feature.Meaningful only for Consumption license features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Indicates whether overage is allowed for Consumption feature.Meaningful only for Consumption license features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Indicates whether unlimited consumption is allowed for Consumption feature.Meaningful only for Consumption license features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Feature code.
Implements LicenseSpring.ILicenseFeature.
|
get |
Period of time after which consumption is reset.Meaningful only for Consumption license features.
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 |
Point in time until which a floating feature is registered. Expressed in local time.Meaningful only for floating features. Returns DateTime.Now if a feature is not registered or is not floating.
Implements LicenseSpring.ILicenseFeature.
|
get |
Point in time until which a floating feature is registered. Expressed in UTC.Meaningful only for floating licenses. Returns DateTime.Now if a feature is not registered or is not floating.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum number of simultaneous users allowed for this feature.Meaningful only for floating features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Current number of simultaneous users using this feature.Meaningful only for floating features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Duration of floating feature registration in minutes.Meaningful only for floating features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Is this feature a floating feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Is this feature an offline server floating feature.
Implements LicenseSpring.ILicenseFeature.
|
get |
Local consumption of the feature, this is the amount which has not been synced yet.Meaningful only for consumption feature type.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum consumption of the feature.Meaningful only for consumption feature type.
Implements LicenseSpring.ILicenseFeature.
|
get |
Maximum overage allowed for the license feature.Meaningful only for Consumption feature type, the value is 0 in case of unlimited overages
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.Meaningful only for Consumption license features.
Implements LicenseSpring.ILicenseFeature.
|
get |
Total consumption of the feature, it includes LocalConsumption.Meaningful only for consumption feature type.
Implements LicenseSpring.ILicenseFeature.