ModuleLicensesHelperGetValidModuleLicenses Method |
Returns collection of valid module license data for given module.
Namespace: CMS.ModuleLicensesAssembly: CMS.ModuleLicenses (in CMS.ModuleLicenses.dll) Version: 10.0.0
Syntax 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:
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