LicensesCollection

The LicensesCollection class is used to manage all of the licenses in all of the Licenses parent containers defined for a forest.

Syntax

public interface ILicensesCollection

Discussion

The LicensesCollection object is retrieved using the Cims.LoadLicenses method.

Methods

The LicensesCollection class provides the following methods:

This method Does this

Find

Returns the specific parent container object from the collection of all parent license containers in the forest.

GetEnumerator

Returns an enumeration of Licenses objects.

GetLicensedCount

Returns the total number of licenses of the specified license type that have been installed.

GetUsedCount

Returns the total number of licenses of the specified license type that are currently being used.

Properties

The LicensesCollection class provides the following properties:

This property Does this

Count

Gets the number of license container objects stored in the Active Directory forest.

HasEvaluation

Indicates whether there are any evaluation licenses in the forest.

HasMachineLicense

Indicates whether any computer license is installed.

Item

Gets the parent license container object by index number.