| LicenseSpring Management .Net SDK 1.15.0 Easily add Software Licensing to your application

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Properties | List of all members
LicenseSpring.LicenseFeature Class Reference

License feature. More...

Inheritance diagram for LicenseSpring.LicenseFeature:

## 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. Returns Boolean value indicating whether license feature is 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

## Detailed Description

License feature.

Particular license may have or not some of the product features.

## Member Enumeration Documentation

## ◆ Type

enum LicenseSpring.LicenseFeature.Type

Feature type enumeration.

Enumerator
None | Invalid type.
Activation | Activation license feature type.
Consumption | Consumption license feature type.

## Constructor & Destructor Documentation

## ◆ LicenseFeature()

LicenseSpring.LicenseFeature.LicenseFeature | ( | string | code,
|  | Type | type
| ) |  |

LicenseFeature constructor.

Parameters

  code | Feature code
  type | Feature type

## Member Function Documentation

## ◆ Equals() [1/2]

bool LicenseSpring.LicenseFeature.Equals | ( | LicenseFeature | other | ) |

Returns whether LicenseFeatures are equal.

Parameters

  other | Object to compare

Returns
  true if equal and false otherwise

## ◆ Equals() [2/2]

override bool LicenseSpring.LicenseFeature.Equals | ( | object | obj | ) |

Override Object.Equals.

Parameters

  obj | Object to compare

Returns
  true if equal and false otherwise

## ◆ FeatureTypeFromString()

static Type LicenseSpring.LicenseFeature.FeatureTypeFromString | ( | string | value | ) |
| static

Helper function. Converts string value to feature type (LicenseFeature.Type)

Parameters

  value | String value of the feature type

Returns
  LicenseFeature.Type value

## ◆ GetHashCode()

override int LicenseSpring.LicenseFeature.GetHashCode | ( |  | ) |

Override Object.GetHashCode.

Returns
  Hash code

## ◆ IsExpired()

bool LicenseSpring.LicenseFeature.IsExpired | ( |  | ) |

Is license feature expired.

Returns
  Boolean value indicating whether license feature is expired

Implements LicenseSpring.ILicenseFeature.

## ◆ ToString()

override string LicenseSpring.LicenseFeature.ToString | ( |  | ) |

Override Object.ToString, helper method, do not rely on its output.

Returns
  String with information about this license feature.

Implements LicenseSpring.ILicenseFeature.

## Property Documentation

## ◆ Code

string LicenseSpring.LicenseFeature.Code
| get

Feature code.

Implements LicenseSpring.ILicenseFeature.

## ◆ ExpiryDate

DateTime LicenseSpring.LicenseFeature.ExpiryDate
| get

It's final end date and time license feature is valid.The DateTime when license feature expires in local time

Implements LicenseSpring.ILicenseFeature.

## ◆ ExpiryDateUtc

DateTime LicenseSpring.LicenseFeature.ExpiryDateUtc
| get

It's final end date and time license feature is valid.The DateTime when license feature expires in UTC

Implements LicenseSpring.ILicenseFeature.

## ◆ FeatureType

Type LicenseSpring.LicenseFeature.FeatureType
| get

Feature type.

Implements LicenseSpring.ILicenseFeature.

## ◆ MaxConsumption

int LicenseSpring.LicenseFeature.MaxConsumption
| get

Maximum consumption of the feature.Meaningful only for consumption feature type.

Implements LicenseSpring.ILicenseFeature.

## ◆ Metadata

string LicenseSpring.LicenseFeature.Metadata
| get set

Feature metadata.

Implements LicenseSpring.ILicenseFeature.

## ◆ Name

string LicenseSpring.LicenseFeature.Name
| get

Feature name.

Implements LicenseSpring.ILicenseFeature.

## ◆ TotalConsumption

int LicenseSpring.LicenseFeature.TotalConsumption
| get

Total consumption of the feature, it includes LocalConsumption.Meaningful only for consumption feature type.

Implements LicenseSpring.ILicenseFeature.

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

- LicenseFeature.cs