Table of Contents

Class LicenseManager

Namespace
Inetlab.MMS
Assembly
Inetlab.MMS.MM7.dll

Manager for library license.

public static class LicenseManager
Inheritance
LicenseManager

Properties

Status

Returns actual status of the license. It helps to distinguish evaluation license from full license.

public static string Status { get; }

Property Value

string

Methods

SetLicense(Stream)

Sets a license.

public static bool SetLicense(Stream stream)

Parameters

stream Stream

The stream, that contains license

Returns

bool

True if it succeeds and license is valid, false if it fails.

Examples

Inetlab.MMS.LicenseManager.SetLicense(this.GetType().Assembly.GetManifestResourceStream(this.GetType(), "Inetlab.MMS.MM7.license" ));

Remarks

After purchase you will receive Inetlab.MMS.MM7.license file per E-Mail. Add this file into the root of project where you have a reference on Inetlab.MMS.MM7.dll. Change "Build Action" of the file to "Embedded Resource".

Set license before using Inetlab.MMS.MM7 classes in your code:

See Also

SetLicense(string)

Sets a license for Inetlab.MMS.MM7 library.

public static bool SetLicense(string licenseContent)

Parameters

licenseContent string

The string, that contains license

Returns

bool

True if it succeeds and license is valid, false if it fails.

Examples

Inetlab.MMS.LicenseManager.SetLicense(File.ReadAllText("Inetlab.MMS.MM7.license"));
See Also