Click or drag to resize

ComponentInfoSetLicense Method

Sets the license (serial) key.

Namespace:  GemBox.Pdf
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version:
public static void SetLicense(
	string serialKey


Type: SystemString
The serial key.

You should call this method before using any other class from GemBox.Pdf assembly.

Key can only be set once (if you try to set another key, exception will be thrown).

The best place to call this method is from static constructor of your application's main class.

Valid serial key has multiple groups of alphanumeric characters, separated with dashes.

To use the assembly in free limited mode, use FREE-LIMITED-KEY as serialKey.

For more information about GemBox.Pdf evaluation and licensing, see evaluation and licensing.

See Also