Most of the people will call Validate() of the LicenseManager in the constructor of the component.
A LicenseException will be throw if the license is invalid.
When the validate is called, GetLicense() of the LicenseProvider class will be called. All design time and run time license checking can be handled here. Most of the people will override the LicenseProvider class in order to have their own license checking. You will return NULL for a invalid license. Return a License object for a valid license(you can also override this License class, in order for providing more information for the component).
mhc
|