Class LicenseInfoHelper
Inheritance
LicenseInfoHelper
Assembly: SoLicense.dll
Syntax
public static class LicenseInfoHelper : Object
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