Xceed Real-Time Zip for .NET Documentation
How to license the component once you purchase

Welcome to Xceed Real-Time Zip for .NET, .NET Standard & Xamarin > Installation Instructions > How to license the component once you purchase

If you have purchased a registered license key, here is how the licensing process works:

  1. Receive your registered license key at the email address used during the purchase.

  2. Set the Licenser.LicenseKey property with this license key. See the LicenseKey property section below for details.

  3. Compile your application and deploy it.

If you do not have a registered license key, please contact Xceed at sales@xceed.com to purchase a license or to have your license key resent to you if you have lost it.

LicenseKey property

The LicenseKey property of the Licenser class must be set with a valid license key, before any other method of your Xceed component is called. If you use an invalid or expired license key, fail to license the control with a registered license key after the trial period, or license it in the wrong place in your code, an exception will be thrown at runtime. 

We recommend that you set the LicenseKey property in the main entry point of the application. For example, C# users can set the LicenseKey property in the static main function. VB.NET users can set the LicenseKey property in the constructor of the main form or in the "Sub Main" procedure. 

If no entry point is available, it is recommended that you set the LicenseKey property in a static constructor of a class that will be accessed systematically before any of the library's classes are instantiated, or you can simply set the LicenseKey property immediately BEFORE you instantiate a class. To license Xceed Real-Time Zip for .NET or Xceed Real-Time Zip for .NET CF, use the following:

/* Xceed Real-Time Zip for .NET license keys have the form: ZRTXX-XXXXX-XXXXX-XXXX

   Xceed Real-Time Zip for Xamarin license keys have the form: ZRXXX-XXXXX-XXXXX-XXXX

   Xceed Real-Time Zip for Silverlight license keys have the form: ZRSXX-XXXXX-XXXXX-XXXX

   Xceed Real-Time Zip for Compact Framework license keys have the form: ZRCXX-XXXXX-XXXXX-XXXX */



// License Xceed Real-Time Zip for .NET, Xamarin, Silverlight or Compact Framework using your license key

Xceed.Zip.ReaderWriter.Licenser.LicenseKey = "ZRTXX-XXXXX-XXXXX-XXXX";

     

/* OPTIONAL: If classes from Xceed.Compression.Formats are used in the application,

   the assembly needs to be licenses explicitly. The same license key is used. */

Xceed.Compression.Formats.Licenser.LicenseKey = "ZRTXX-XXXXX-XXXXX-XXXX";
'       Xceed Real-Time Zip for.NET license keys have the form: ZRTXX-XXXXX-XXXXX-XXXX

'         Xceed Real-Time Zip for Xamarin license keys have the form: ZRXXX-XXXXX-XXXXX-XXXX

'         Xceed Real-Time Zip for Silverlight license keys have the form: ZRSXX-XXXXX-XXXXX-XXXX

'         Xceed Real-Time Zip for Compact Framework license keys have the form: ZRCXX-XXXXX-XXXXX-XXXX 



      ' License Xceed Real-Time Zip for .NET, Xamarin, Silverlight or Compact Framework using your license key

      Xceed.Zip.ReaderWriter.Licenser.LicenseKey = "ZRTXX-XXXXX-XXXXX-XXXX"



'       OPTIONAL: If classes from Xceed.Compression.Formats are used in the application,

'         the assembly needs to be licenses explicitly. The same license key is used. 

      Xceed.Compression.Formats.Licenser.LicenseKey = "ZRTXX-XXXXX-XXXXX-XXXX"