edtFTPnet/PRO uses a license code to
control use of the product. The Connect() methods of all key classes
(e.g.ExFTPConnectionandSecureFTPConnection) check that a valid license is available,
otherwise an exception is thrown.
The license is supplied as two strings, the
license owner and the license key. These strings can be used in three different ways:
1. In an application's standard configuration file, in the "appSettings" section.
2. As hard-coded properties on SecureFTPConnection.
3. In the registry.
An example of use in an application's configuration file is shown below.
Simply substitute the license.owner and license.key values for those supplied.
Some applications may require the
license settings to be supplied in a more direct manner. For example, if a DLL was
being produced that uses edtFTPnet/PRO, it may not have its own configuration file.
In this case, the LicenseKey
and LicenseOwner properties should be used. The key and owner
values are set explicitly, and the class will be unlocked for use. For
example:
At design time, these properties can
be set explicitly in the component's Properties window. They can be found in the
Licensing category.
Finally, the owner and key can be stored in the Windows registry - in fact this is where they
are installed for the trial. There are LicenseOwner and LicenseKey string values stored under
HKEY_CURRENT_USER\Software\Enterprise Distributed Technologies\edtFTPnet PRO.