![]() |
LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
|
Class that represents License identifier More...
Public Member Functions | |
bool | Equals (LicenseID id) |
Compare this object with given LicenseID More... | |
override bool | Equals (object obj) |
Overrides Object.Equals | |
override int | GetHashCode () |
Overrides Object.GetHashCode | |
string | Id () |
Returns license key or user identifier, depending of what is present More... | |
bool | IsEmpty () |
Checks if LicenseID is empty More... | |
bool | IsValid () |
Checks if LicenseID is valid More... | |
string | Id () |
Returns license key or user identifier, depending of what is present More... | |
bool | IsEmpty () |
Checks if LicenseID is empty More... | |
bool | IsValid () |
Checks if LicenseID is valid More... | |
Static Public Member Functions | |
static LicenseID | FromKey (string licenseKey) |
Constructs LicenseID with given license key. More... | |
static LicenseID | FromUser (string user, string password="") |
Constructs LicenseID with given user credentials. More... | |
static bool | operator!= (LicenseID lhs, LicenseID rhs) |
Compare two LicenseIDs More... | |
static bool | operator== (LicenseID lhs, LicenseID rhs) |
Compare two LicenseIDs More... | |
Properties | |
string | Key [get] |
License key or empty string, if key is not set, for example in case of user-based product. More... | |
string | Password [get, set] |
Returns user password or empty string, if password is not set. SDK does not store password on disk or anywhere else. More... | |
string | User [get] |
User identifier or empty string, if user is not set, for example in case of key-based product. More... | |
![]() | |
string | Key [get] |
License key or empty string, if key is not set, for example in case of user-based product. More... | |
string | Password [get, set] |
Returns user password or empty string, if password is not set. SDK does not store password on disk or anywhere else. More... | |
string | User [get] |
User identifier or empty string, if user is not set, for example in case of key-based product. More... | |
Class that represents License identifier
For key-based products it is license key, for user-based products it is user credentials - user identifier (typically email) and password.
Please note: password only required for license activation, other API does not require password. This class does not throw exceptions.
bool LicenseSpring.LicenseID.Equals | ( | LicenseID | id | ) |
Compare this object with given LicenseID
|
static |
|
static |
string LicenseSpring.LicenseID.Id | ( | ) |
Returns license key or user identifier, depending of what is present
Implements LicenseSpring.ILicenseID.
bool LicenseSpring.LicenseID.IsEmpty | ( | ) |
Checks if LicenseID is empty
Implements LicenseSpring.ILicenseID.
bool LicenseSpring.LicenseID.IsValid | ( | ) |
Checks if LicenseID is valid
Implements LicenseSpring.ILicenseID.
Compare two LicenseIDs
Compare two LicenseIDs
|
get |
License key or empty string, if key is not set, for example in case of user-based product.
Implements LicenseSpring.ILicenseID.
|
getset |
Returns user password or empty string, if password is not set. SDK does not store password on disk or anywhere else.
Implements LicenseSpring.ILicenseID.
|
get |
User identifier or empty string, if user is not set, for example in case of key-based product.
Implements LicenseSpring.ILicenseID.