![]() |
LicenseSpring .Net SDK 7.40.0
Easily add Software Licensing to your application
|
LicenseID interface, see LicenseID class.
More...
Public Member Functions | |
| string | Id () |
| Returns license key or user identifier, depending of what is present. | |
| bool | IsEmpty () |
| Checks if LicenseID is empty. | |
| bool | IsValid () |
| Checks if LicenseID is valid. | |
Properties | |
| string | Key [get] |
| License key or empty string, if key is not set, for example in case of user-based product. | |
| 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. | |
| long? | ServerId [get, set] |
| Serverside license id, used for activating user licenses if a single user has multiple licenses for the same product. If not set, latest license will be activated. | |
| string | User [get] |
| User identifier or empty string, if user is not set, for example in case of key-based product. | |
LicenseID interface, see LicenseID class.
| string LicenseSpring.ILicenseID.Id | ( | ) |
Returns license key or user identifier, depending of what is present.
Implemented in LicenseSpring.LicenseID.
| bool LicenseSpring.ILicenseID.IsEmpty | ( | ) |
Checks if LicenseID is empty.
LicenseID considered empty if both license key and user are empty strings.
Implemented in LicenseSpring.LicenseID.
| bool LicenseSpring.ILicenseID.IsValid | ( | ) |
Checks if LicenseID is valid.
LicenseID considered valid if one of the members (key or user) is not empty. Equivalent of !IsEmpty().
Implemented in LicenseSpring.LicenseID.
|
get |
License key or empty string, if key is not set, for example in case of user-based product.
Implemented in LicenseSpring.LicenseID.
|
getset |
Returns user password or empty string, if password is not set. SDK does not store password on disk or anywhere else.
Implemented in LicenseSpring.LicenseID.
|
getset |
Serverside license id, used for activating user licenses if a single user has multiple licenses for the same product. If not set, latest license will be activated.
Implemented in LicenseSpring.LicenseID.
|
get |
User identifier or empty string, if user is not set, for example in case of key-based product.
Implemented in LicenseSpring.LicenseID.