Name

License

Synopsis

This is the abstract base class for licenses that can be granted to a component. It provides a LicenseKey property, which returns a string representing the license for the component. You must also implement the Dispose() member.

A License is returned by the LicenseProvider.GetLicense() method when a valid license is available for a particular object in the current LicenseContext.

See LicenseManager for more information on licensing.


public abstract class License : IDisposable {

// Protected Constructors

   protected License();

// Public Instance Properties

   public abstract string LicenseKey{get; }

// Public Instance Methods

   public abstract void Dispose();  // implements IDisposable

}

Returned By

LicenseProvider.GetLicense()

Passed To

LicenseManager.IsValid()

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.