Class LicenseInfoHelper
Inheritance
LicenseInfoHelper
Assembly: SoLicense.dll
Syntax
public static class LicenseInfoHelper
Methods
GetModule(LicenseInfo, string)
Get the module privided the module name.
Declaration
public static ModuleLicense GetModule(this LicenseInfo license, string moduleName)
Parameters
| Type |
Name |
Description |
| LicenseInfo |
license |
License to find the module in.
|
| string |
moduleName |
Name of the module to find.
|
Returns
| Type |
Description |
| ModuleLicense |
The module found. Null if no module is found matching the module name.
|
LoadFromFile(string)
Declaration
public static LicenseInfo LoadFromFile(string fileName)
Parameters
| Type |
Name |
Description |
| string |
fileName |
|
Returns
| Type |
Description |
| LicenseInfo |
|
LoadFromXml(string)
Declaration
public static LicenseInfo LoadFromXml(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
| Type |
Description |
| LicenseInfo |
|
SaveLicenseAsImportFile(LicenseInfo, StringWriter, string)
Write License to a string using the import file format.
Declaration
public static void SaveLicenseAsImportFile(this LicenseInfo license, StringWriter importFile, string soPublicKey)
Parameters
| Type |
Name |
Description |
| LicenseInfo |
license |
|
| StringWriter |
importFile |
|
| string |
soPublicKey |
Base64 encoded string or file name
|
SaveLicenseAsImportFile(LicenseInfo, string)
Declaration
public static void SaveLicenseAsImportFile(this LicenseInfo license, string initPath)
Parameters
| Type |
Name |
Description |
| LicenseInfo |
license |
|
| string |
initPath |
|
SaveLicenseAsXml(LicenseInfo, string)
Declaration
public static void SaveLicenseAsXml(this LicenseInfo license, string fileName)
Parameters
| Type |
Name |
Description |
| LicenseInfo |
license |
|
| string |
fileName |
|
WriteToXml(LicenseInfo)
Declaration
public static string WriteToXml(this LicenseInfo license)
Parameters
| Type |
Name |
Description |
| LicenseInfo |
license |
|
Returns