| ModuleLicensesHelperGetValidModuleLicenses Method |
Returns collection of valid module license data for given module.
Namespace: CMS.ModuleLicensesAssembly: CMS.Modules (in CMS.Modules.dll) Version: 12.0.0
Syntaxpublic 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:
IEnumerableStringCollection of valid module license data for given module
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | moduleName or publicKey is null |
| ArgumentException | moduleNameis not valid name of existing module or publicKey has invalid format of public key encoded in Base64 |
See Also