Add

Adds a license key to the set of keys of a particular type.

Syntax

Key Add(string key)

Parameter

Specify the following parameter when using this method:

Parameter Description

key

The license key string to add to the set.

Return value

The added license key object.

Exceptions

Add 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.