GetUsedCount

Returns the total number of licenses of the specified license type that are currently being used in an Active Directory forest.

Syntax

int GetUsedCount(LicenseType type)

Parameter

Specify the following parameter when using this method:

Parameter Description
type The license type for which you want to determine the number being used.

See Type for possible values.

Return value

Returns a value that represents the number of licenses of the specified type that are currently in use.

Exceptions

GetUsedCount throws an ApplicationException if license information is unavailable because an LDAP error occurred.