Class License

Class License

Namespace: Aspose.Medical
Assembly: Aspose.Medical.dll (25.11.0)

Provides methods to license the component.

public sealed class License

Inheritance

object License

Inherited Members

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

License()

public License()

Methods

ResetLicense()

Resets the license.

public void ResetLicense()

Examples

License license = new License();
  license.ResetLicense();

Remarks

Use this method to reset license in component.

SetLicense(string)

Licenses the component.

public void SetLicense(string licenseName)

Parameters

licenseName string

Can be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode.

Remarks

Tries to find the license in the following locations:

1. Explicit path.

2. The folder that contains the Aspose component assembly.

3. The folder that contains the client's calling assembly.

4. The folder that contains the entry (startup) assembly.

5. An embedded resource in the client's calling assembly.

SetLicense(Stream)

Licenses the component.

public void SetLicense(Stream stream)

Parameters

stream Stream

A stream that contains the license.

Remarks

Use this method to load a license from a stream.