DeployLX Software Protection System

SecureLicense Members

The SecureLicense type exposes the following members.

Constructors

Public methodSecureLicense

Initializes a new instance of the SecureLicense class.

Methods

Public methodAreFeaturesEnabled

Overloaded. Examines all of the FeatureLimits to see if the named feature has been enabled.

Public methodAttachChangeBubbler

Attaches an event handler to the child object added to the collection to ensure that events are bubbled up to the license.

Public methodClearSerialNumbersAndActivationData

Clears any stored serial numbers or activation codes from the license and the machine. Can be called during software uninstall. Other license state such as time limit and use tracking information is not removed.

Public methodDispose

Releases any managed or unmanaged resources.

Overrides License..::..Dispose()()()().
Public methodEquals Inherited from Object.
Protected methodFinalize Inherited from Object.
Public methodFlush

Writes any changes in the data back to storage. For example changes to the unprotected MetaValues collection.

Public methodFromXmlString

Loads the contents of the license from an XML string.

Public methodGetFlag

Overloaded. Gets a value that indicates if the given flag is set in the

Public methodGetHashCode Inherited from Object.
Public methodGetTimeMonitor

Overloaded. Gets the active for the first in the license.

Public methodGetType Inherited from Object.
Public methodGetUseMonitor

Overloaded. Gets the active for the first in the license.

Protected methodMemberwiseClone Inherited from Object.
Public methodReloadWithKey

Attempts to reload the license from it's encrypted state with the given code.

Public methodShowForm

Overloaded. Shows the form.

Public methodShowRegistrationForm

Shows the registration form and if needed attempts to unlock a license.

Public methodToString

Returns a String that represents the current Object.

Overrides Object..::..ToString()()()().
Public methodToXmlString

Saves the contents of the license to an XML string.

Public methodUnlock

Unlocks the license by validating the given serial number.

Public methodWriteToXml

Saves the contents of the SecureLicense to the given XmlWriter.

Extension Methods

Public Extension MethodGetNetworkMonitor

Gets the NetworkLicenseClientMonitor for a license that contains a NetworkLicenseClientLimit.

(Defined by NetworkLicenseExtensions.)

Fields

Public fieldStatic memberCurrentVersion

The current license runtime file version.

Properties

Public propertyCanUnlockBySerial

Gets or sets a value that indicates if the license can be unlocked with a serial number.

Public propertyClasses

Gets a the collection of class or component names that the license applies to.

Public propertyComments

Gets or sets comments to store with the license. The comments are never displayed to the user and are useful only for use in the license manager or other tools for recording useful information for the developer or sales staff.

Public propertyDemandAuthenticationForWeb

Gets or sets a value that indicates if the user should be prompted for their credentials if they are not an administrator. Used only when RequireAdminOnFirstRun and the request is made from an ASP.NET application.

Public propertyDisallowImpersonationForWeb

Gets or sets a value that indicates if Impersonation in ASP.NET should not be allowed when RequireAdminOnFirstRun does not require an administrator to run on ASP.NET applications.

Public propertyEdition

Gets or sets an application/product specific description of the type of license. For examples "designer", "single user", "non-profit", etc.

Public propertyEulaAddress

Gets or sets the address where users can find a copy of the End User License Agreement.

Public propertyHardFailureIfFormShown

Gets or sets a value that indicates if the license search process should stop if this license shows a form to the user and is determined not to be valid.

Public propertyIsActivated

Gets a value that indicates if the license contains an ActivationLimit and it has been successfully activated. It does not indicate if the activation information is still valid, that is checked only during license validation.

Public propertyIsActivation

Gets a value that indicates if the license contains an ActivationLimit.

Public propertyIsDisposed

Gets a value that indicates if the license is disposed.

Public propertyIsEditing

Gets or sets a value that indicates if the license is being edited in a designer.

Public propertyIsEmbedded

Gets a value that indicates if the license was loaded from an embedded resource rather then an external .LIC file.

Public propertyIsNew

Gets a value that indicates if the license has been signed at least once and certain properties should be protected from modification.

Public propertyIsReadOnly

Gets a value that indicates if the current license is read only.

Public propertyIsStillEncrypted

Gets a value that indicates if an encrypted license is still encrypted in memory after loading. If true the license can be saved without modification but cannot be modified or validated.

Public propertyIsTemplate

Gets or sets a value that indicates if this license is a template and is not to be used for validation.

Public propertyIsTrial

Gets a value that indicates if the license has a TrialLimit.

Public propertyIsUnlocked

Gets a value that indicates if CanUnlockBySerial is true and a serial number has been provided for the license but does not indicates if the serial number is valid. The serial number can only be checked during validation.

Public propertyIsUpgrade

Gets a value that indicates if the license has an UpgradeLimit.

Public propertyLicenseFile

Gets a reference to the LicenseFile that owns the license.

Public propertyLicenseId

Gets or sets a value that globally identifies this license. The value should be either a GUID or follow the format Company.Product.TypeName.

Public propertyLimits

Gets the collection of limits to enforce on the license.

Public propertyMetaValues

Gets a collection of arbitrary values to store with the license. These values are not protected and may be changed without affecting the validity of the license. Use for storing volatile information and other unsecured information.

Public propertyOrganization

Gets or sets the organization from the RegistrationInfo dictionary.

Public propertyRegistrationInfo

Gets a collection of values that were gathered by the RegistrationLimit when the license was first used.

Public propertyRequireAdminOnFirstRun

Gets or sets a value that indicates if an administrator must run the application at least once. This allows DeployLX Licensing to set up security settings on shared objects so that trials and other data is shared between users.

Public propertyResources

Gets the collection of resources embedded in the license. Theses resources can be used for images on forms, or as HTML pages for info boxes and more.

Public propertyRuntimeState

Gets a reference to per-license specific state that works independent of any underlying state schemes. This is used to safely track values that should be kept in memory even when a license is reloaded from disk. This data is not stored between process executions.

Public propertySecureStorageRequirement

Gets or sets a value that indicates if validation should fail if secure storage cannot be obtained.

Public propertySerialNumber

Gets or sets the SerialNumber value. Alias of SerialNumberInfo.SerialNumber.

Public propertySerialNumberInfo

Gets the SerialNumberInfo for the license.

Public propertyType

Alias for the Edition property.

Public propertyUsername

Gets or sets the user name from the RegistrationInfo dictionary.

Public propertyValues

Gets a collection of arbitrary values to store with the license.

Public propertyVersion

Gets or sets the version of the licensing scheme used.

Public propertyWasUnlockedThisTime

Gets a value that indicates if the license was unlocked during this attempt to validate. Can be checked to perform one time operations such as displaying a thank you message or downloading a fully licensed version.

Explicit Interface Implementations

Explicit interface implemetationPrivate methodISerializable..::..GetObjectData

Serializes a license that was previously serialized. Used by the .NET framework when marshalling an object between AppDomains.

Explicit interface implemetationPrivate eventIChange..::..Changed

Fired when one of the properties of the license or child limits changes.

Explicit interface implemetationPrivate methodIChange..::..MakeReadOnly

Makes the license readonly.