Click or drag to resize
ModuleLicensesHelperGetValidModuleLicenses Method
Returns collection of valid module license data for given module.

Namespace: CMS.ModuleLicenses
Assembly: CMS.ModuleLicenses (in CMS.ModuleLicenses.dll) Version: 10.0.0
Syntax
C#
public static IEnumerable<string> GetValidModuleLicenses(
	string moduleName,
	string publicKey
)

Parameters

moduleName
Type: SystemString
Code name of module which licenses to get
publicKey
Type: SystemString
Public key, generated by GenerateKeyPair(String, String) for validating licenses of given module

Return Value

Type: IEnumerableString
Collection of valid module license data for given module
Exceptions
ExceptionCondition
ArgumentNullExceptionmoduleName or publicKey is null
ArgumentExceptionmoduleNameis not valid name of existing module or publicKey has invalid format of public key encoded in Base64
See Also