System.ComponentModel.License.Dispose Method

When overridden in a derived class, disposes of the resources used by the license.

Syntax

public abstract void Dispose ()

Remarks

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

A System.ComponentModel.LicenseProvider can use the licenses it grants to track its usage.

Call License.Dispose when you are finished using the System.ComponentModel.License. The License.Dispose method leaves the System.ComponentModel.License in an unusable state. After calling License.Dispose, you must release all references to the System.ComponentModel.License so the memory it was occupying can be reclaimed by garbage collection.

Note:

Always call License.Dispose before you release your last reference to the System.ComponentModel.License. Otherwise, the resources the System.ComponentModel.License is using will not be freed until garbage collection calls the System.ComponentModel.License object's destructor.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0