AddLicenseKey

Adds a license key to the set of licenses in a particular Licenses parent container.

Syntax

IKey AddLicenseKey(string key)

Parameter

Specify the following parameter when using this method:

Parameter Description

key

The license key string to add to the parent container.

Return value

The added key object.

Exceptions

AddLicenseKey may throw one of the following exceptions:

  • ApplicationException if the license key has expired, is invalid, or is a non-FIPS 140 key on a system that requires FIPS 140 keys.
  • ArgumentException if the parameter is null or empty or if the key already exists.