CVB.Net 15.0
Loading...
Searching...
No Matches
LicenseCollectionExtensions Class Reference

Extension methods for use with generic collections of license information. More...

Static Public Member Functions

static bool IsSerialNumberAvailable (this ICollection< LicenseInfo > list, int serialNumber)
 Check whether at least one license with the given serialNumber is available on this system.
 
static bool IsFoundationLicenseAvailable (this ICollection< LicenseInfo > list)
 Check whether at least one license for the foundation package is available on this system.
 
static bool IsMagicNumberAvailable (this ICollection< MagicNumberEntry > list, string toolID, bool ignoreTrialLicenses)
 Check whether at least one Magic Number is available for the given toolID .
 
static bool IsMagicNumberAvailable (this ICollection< MagicNumberEntry > list, string toolID)
 Check whether at least one Magic Number is available for the given toolID .
 

Detailed Description

Extension methods for use with generic collections of license information.

Member Function Documentation

◆ IsFoundationLicenseAvailable()

static bool IsFoundationLicenseAvailable ( this ICollection< LicenseInfo > list)
static

Check whether at least one license for the foundation package is available on this system.

Parameters
listcollection to check
Returns
true
if the collection contains at least one license for the Foundation package

◆ IsMagicNumberAvailable() [1/2]

static bool IsMagicNumberAvailable ( this ICollection< MagicNumberEntry > list,
string toolID )
static

Check whether at least one Magic Number is available for the given toolID .

Parameters
listcollection to check
toolIDtool ID to check for
Returns
true
if at least one Magic Number entry was found that matches the criteria,
false
otherwise

◆ IsMagicNumberAvailable() [2/2]

static bool IsMagicNumberAvailable ( this ICollection< MagicNumberEntry > list,
string toolID,
bool ignoreTrialLicenses )
static

Check whether at least one Magic Number is available for the given toolID .

Parameters
listcollection to check
toolIDtool ID to check for
ignoreTrialLicensesset to
true
to ignore all Magic Numbers that are reported for serial number 999 (which corresponds to the trial licenses; Magic Numbers for the trial licenses are always available if the tool is provided by STEMMER IMAGING).
Returns
true
if at least one Magic Number entry was found that matches the criteria,
false
otherwise

◆ IsSerialNumberAvailable()

static bool IsSerialNumberAvailable ( this ICollection< LicenseInfo > list,
int serialNumber )
static

Check whether at least one license with the given serialNumber is available on this system.

Parameters
listcollection to check
serialNumberserial number to check for
Returns
true
if the given serialNumber is available,
false
otherwise