Licenses

The Licenses class is used to manage a set of licenses in a particular license container object.

Syntax

public interface ILicenses

Discussion

This class represents the collection of License objects that have been added to this parent container object. The Licenses object represents one container in the LicensesCollection object.

Methods

The Licenses class provides the following methods:

This method Does this

AddLicenseKey

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

Commit

Commits any changes to the Licenses object to Active Directory.

GetDirectoryEntry

Returns an instance of the directory entry for the Licenses parent container object.

Refresh

Reloads the Licenses object data from the data in Active Directory.

RemoveLicenseKey

Removes a license key from the set.

Properties

The Licenses class provides the following properties:

This property Does this

Count

Gets the number of license objects stored in this Licenses container.

HasEvaluation

Indicates whether any generated license key installed in the Licenses parent container is an evaluation license.

HasMachineLicense

Indicates whether any computer license is installed.

ID

Gets the ID from this Licenses object.

IsReadable

Indicates whether the Licenses parent object in Active Directory is readable.

IsWritable

Indicates whether the Licenses parent object in Active Directory is writable.

Item

Gets the License object for a specific type of license.