Click or drag to resize

License Class

This class is definition of license object. It's methods can be used to programatically generate licenses.
Inheritance Hierarchy
SystemObject
  TreeksLicensingLibrary2License

Namespace:  TreeksLicensingLibrary2
Assembly:  TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (2.1.0.0)
Syntax
[SerializableAttribute]
public class License

The License type exposes the following members.

Constructors
  NameDescription
Public methodLicense
Initializes the class
Top
Properties
  NameDescription
Public propertyAllowedFeatures
Gets or sets allowed features list
Public propertyBlockedFeatures
Gets or sets blocked features list
Public propertyEnableHardwareIDMoreDistinctMode
If enabled, hardware id for license verification is calucalted using components like HDD serial, which are frequently replaced. It generates distinct IDs for 99,99% of devices.
Public propertyEnableHardwareIDTerminalServicesMode
If enabled, MAC addresses of network interfaces within the device are used to calculate hardware ID together with currently logged in username. This automatically sets EnableHardwareIDMoreDistinctMode
Public propertyExpirationDate
Gets or sets license expiration date.
Public propertyExpirationDateEnabled
If set to true, the license will not pass validation after expiration date
Public propertyExpirationCheckOnlineOnly
Gets or sets if the expiration can be checked with local computer time
Public propertyExpirationCheckTimeServer
Gets or sets the NTP server address used to check license expiration date
Public propertyHardwareID
Gets or sets whitelisted hardware ID list for license
Public propertyHardwareIDSalt
Property to set hardware ID salt for license verification.
Public propertyInfo1
Gets or sets any additional information in license
Public propertyInfo10
Gets or sets any additional information in license
Public propertyInfo2
Gets or sets any additional information in license
Public propertyInfo3
Gets or sets any additional information in license
Public propertyInfo4
Gets or sets any additional information in license
Public propertyInfo5
Gets or sets any additional information in license
Public propertyInfo6
Gets or sets any additional information in license
Public propertyInfo7
Gets or sets any additional information in license
Public propertyInfo8
Gets or sets any additional information in license
Public propertyInfo9
Gets or sets any additional information in license
Public propertyIsDemo
Allows to easily determine if license is demo/trial
Public propertyIsReadOnly
Makes all properties of this object read-only. This can't be reverted.
Public propertyObfuscationPassword
Gets or sets the obfuscation password used to encrypt license
Public propertyOwnerName
Gets or sets license owner name
Public propertyProductName
Gets or sets product name
Public propertySerialNumber
Gets or sets serial number of license
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerateLicenseFile
Generates license file to be used in your application
Public methodGenerateLicenseString
Generates license string to be used in your application
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This object will be returned during license verification process and thus can be used to read license details in your application. This class can be used for generating license.
See Also