This documentation is archived and is not being maintained.

License Class

Provides the abstract (MustInherit in Visual Basic) base class for all licenses. A license is granted to a specific instance of a component.

For a list of all members of this type, see License Members.


[Visual Basic]
MustInherit Public Class License
   Implements IDisposable
public abstract class License : IDisposable
public __gc __abstract class License : public IDisposable
public abstract class License implements IDisposable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


All components must call Dispose for the licenses they grant when the component is disposed or finalized.

Notes to Inheritors:  When you inherit from License, you must override the following members: LicenseKey and Dispose.

For more information on licensing, see Licensing Components and Controls.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

License Members | System.ComponentModel Namespace | LicenseContext | LicenseException | LicenseManager | LicenseProvider | LicenseProviderAttribute | LicFileLicenseProvider | LicenseUsageMode