The SecureLicense type exposes the following members.

Constructors

  NameDescription
Public methodSecureLicense()()()()
Initializes a new instance of the SecureLicense class
Public methodSecureLicense(String)
Instantiates a secure license.

Methods

  NameDescription
Public methodActivate
Activates a license specified by the licenseKey parameter. If the licenseKey parameter's license type is 'ActivationKey', the LicenseServiceURL property must be set.
Public methodDeactivate()()()()
Deactivates the current license on the current system.
Public methodDeactivate(Boolean)
Deactivates the current license on the current system.
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.)
Protected methodGetActivationInfo
Gets activation information associated with the current license. This activation information is created when activating or unlocking a license key is passed to the SaveActivationInfo(String, array<Byte>[]()[][]) method.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetSystemId
Gets a system identifier for the current system using the specified sysIdentifierOptions
Protected methodGetSystemIdentifierParts
Gets a list of bytes that represent the system identifiers that are used to generate the system id. Override this method to use your own system identifier instead of the default one that is provided by the SecureLicense class. If you override this method, there should at least be one item in they byte array list that is returned. If the byte array list contains more than eight items, all the items after the eighth item will be ignored. The byte array values that are returned must be the same for the same machine/system so that the license validation will return the same result upon subsequent license validation.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodIsFlagEnabled
Checks if a flag is enabled for the specified flagIndex.
Public methodLoad
Loads a license from the specified license store (LicenseFilePath, RegistryKey + RegistryValueName or IsolatedStorageScope + IsolatedStoragePath).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave
Saves a license into the specified license store (LicenseFilePath, RegistryKey + RegistryValueName or IsolatedStorageScope + IsolatedStoragePath).
Protected methodSaveActivationInfo
Saves activation information associated with the current license. This activation information is created when activating or unlocking a license key is passed to the SaveActivationInfo(String, array<Byte>[]()[][]) method.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyActivationDate
The date on which the current license is activated.
Public propertyCreatedDate
The date on which the current license was created.
Public propertyCustomData
The custom data that is embedded in the current license.
Public propertyExpiryDate
The exact date on which the license will expire.
Public propertyExpiryDays
The number of days the license will expire after first use.
Public propertyHasExpiryDateLimit
True if the current license has exact expiry date specified.
Public propertyHasExpiryDaysLimit
True if the current license has number of expiry days specified.
Public propertyHasExpiryLimit
True if any expiry limit (exact date or number of days) specified.
Public propertyIsolatedStoragePath
The isolated storage path that will be used for the isolated storage where the license data will be stored or loaded from.
Public propertyIsolatedStorageScope
The isolated storage scope that will be used for the isolated storage where the license data will be stored or loaded from.
Public propertyIsValid
Returns true if the currently loaded license is valid.
Public propertyLicenseFilePath
The file path that will be used to load and store license data.
Public propertyLicenseKeyType
The current license type ("Unlock Key" or "Activation Key").
Public propertyLicenseServiceChecks
The type of license check that will be performed when loading a license.
Public propertyLicenseServiceErrorCode
Gets the license service error code for the recent response from the license service.
Public propertyLicenseServiceErrorMessage
Gets the license service error message for the recent response from the license service.
Public propertyLicenseServiceUrl
If an activation license key is being activated, this URL will be used as the end point of the license service URL that is used when activating, checking and deactivating license keys.
Public propertyRegistryKey
The registry key name that will be used to load and store license data.
Public propertyRegistryValueName
The registry value name that will be used to load and store license data.
Public propertyRemainingDaysBeforeExpiry
The number of days before the current license expires.
Public propertyStatus
Returns the current license validation status
Public propertyTotalRemainingDaysBeforeExpiry
The number of days before the current license expires expressed in whole and fractional days.
Public propertyValidationKey
Gets or sets the validation (public) key that will be used to check and validate license keys.

See Also