 |
 |
 |
 |
How to use the license file |
 |
 |
 |
 |
edtFTPnet/Compact uses a license code to control use of the product. The Connect() methods
of
ExFTPConnection check that a valid license is available, otherwise an exception is thrown.
The trial license is supplied in a license.xml file, of which an example is shown below:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!-- trial licence -->
<!-- expires 31 Dec 2099 -->
<add key="license.owner" value="theowner"/>
<add key="license.product" value="edtftpnetcompact"/>
<add key="license.key" value="111-1111-1111-1111"/>
</appSettings>
</configuration>
License.xml is in a suitable format for use in an application's standard configuration file.
Simply add the section within "appSettings" to the "appSettings" section of your application
configuration file.
Some applications (and many Compact Framework platforms) may require the license settings to be supplied in a more direct manner.
For example, if a DLL was being produced that uses edtFTPnet/Compact, 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:
ftpConnection.LicenseOwner = "theowner";
ftpConnection.LicenseKey = "111-1111-1111-1111";
At design time, these properties can be set explicitly in the component's Properties window.
They can be found in the Licensing category.