Click or drag to resize

ComponentInfoSetLicense Method

Sets the license (serial) key.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.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.Document assembly.

Key can only be set once (if you try 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.Document evaluation and licensing, see evaluation and licensing.

See Also